WD97: Using AppActivate to Switch to Another Application

ID: Q72287


The information in this article applies to:
  • Microsoft Word 97 for Windows


SUMMARY

The AppActivate command activates the specified window in a program other than Microsoft Word. Use AppActivate to switch to another program that is already running or that you have started by using Shell. To activate a window within Microsoft Word, use the Activate command.

NOTE: If the other program is minimized, the AppActivate command will not maximize that program; it simply gives that program the focus and then returns the focus to Word.


MORE INFORMATION

For more information about switching focus to another program from Word 97 for Windows, while in the Visual Basic for Applications Editor, click the Office Assistant, type "AppActivate" (without the quotation marks), click Search, and then click to view "AppActivate Statement". For examples of how to do this in Word, click "Example."

NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If the Assistant is not able to answer your query, please see the following article in the Microsoft Knowledge Base:

Q176476 OFF: Office Assistant Not Answering Visual Basic Questions

Additional query words:

Keywords : kbprg kbdta
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbinfo


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