The information in this article applies to:
SYMPTOMSWhen you automate Microsoft Word 2000 with code such as the following:
the Word application is minimized but the new document window is in a normal window state. You expect that the new document window would also be minimized.
CAUSEWord 2000 is now a Single Document Interface Application. So, whenever a new document is opened in Word 2000, it is opened in a separate window with the default WindowState. This occurs only if a document is already open in the running instance of Microsoft Word. WORKAROUNDTo work around this behavior, set the Visible property of Word to False instead of minimizing it. You do not see the new document when it is created. The code would now be:
Alternately, depending on the application requirements, you can stay with the default Visible property instead of changing it to False later.
STATUSMicrosoft has confirmed this to be a problem in Microsoft Word 2000. REFERENCES
For more information on Office Automation, please visit the Microsoft Office Development support site at: © Microsoft Corporation 1999, All Rights Reserved. Additional query words:
Keywords : kbAutomation KbVBA wd2000 kbWord kbGrpDSO kbDSupport |
Last Reviewed: August 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |