WD2000: Shell Command Does Not Start Second Instance of Word

ID: Q209910


The information in this article applies to:
  • Microsoft Word 2000


SYMPTOMS

When you use the Visual Basic for Applications Shell function to run Word, another instance of Word is not created if Word is currently running. In versions of Word prior to Word 2000, another instance of Word is run when you use the Shell function.


CAUSE

This behavior is by design as part of the Word 2000 Single Document Interface (SDI).


RESOLUTION

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Solution Provider or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Solution Providers, please see the following page on the World Wide Web:

http://www.microsoft.com/mcsp/
For more information about the support options available from Microsoft, please see the following page on the World Wide Web:

http://www.microsoft.com/support/supportnet/refguide/

Adding any Word command-line switch to the command line will run a new, separate instance of Word. However, Word has added a new command-line switch, "/w", to enable you to run a separate instance of Word. Using this new command-line switch opens a new, separate instance of Word with a blank document.

For example:

   Shell "C:\Program Files\Microsoft Office\Office\Winword.exe /w" 


MORE INFORMATION

For more information about command-line switches, click Microsoft Word Help on the Help menu, type "startup" in the Office Assistant or the Answer Wizard, and then click Search to view "Control what happens when you start Microsoft Word".

Additional query words: vba

Keywords : kbdta kbwordvba wd2000
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: June 15, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.