WindowActivate Command Does Not Display Window Activate Dialog
  
PSS ID Number: Q126668
Article last modified on 08-24-1995
 
4.00    | 4.00
 
WINDOWS | MACINTOSH
 

--------------------------------------------------------------------
The information in this article applies to:
 
 - Microsoft Project for Windows, version 4.0
 - Microsoft Project for the Macintosh, version 4.0
--------------------------------------------------------------------
 
SYMPTOMS
========
 
In Microsoft Project, when you use the WindowActivate command in a
macro, the Window Activate dialog box does not appear as expected
when you run the macro.
 
CAUSE
=====
 
The Visual Basic WindowActivate method activates the window that you
specify using the windowName argument. If you omit the windowName
argument (this argument is optional) the name of the active window is
used by default.
 
When you use the WindowActivate command in a macro in Microsoft
Project version 3.0, the Activate Window dialog box appears, allowing
you to select the window that you want to activate. However, the
WindowActivate command behaves differently than the WindowActivate
method in the Microsoft Project version 4.0 macro language when you
don't specify a window name.
 
WORKAROUNDS
===========
 
To display the Activate Window dialog box using a macro in Microsoft
Project version 4.0, use the WindowMoreWindows method as in the following
example:
 
   Sub ActivateWindow()
      WindowMoreWindows
   End Sub
 
STATUS
======
 
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. We are researching this problem
and will post new information here in the Microsoft Knowledge Base as it
becomes available.
 
REFERENCES
==========
 
For more information about the WindowActivate Method, choose the
Search button in the Visual Basic Reference and type:
 
   WindowActivate
 
For more information about the WindowMoreWindows Method, choose the
Search button in the Visual Basic Reference and type:
 
    WindowMoreWindows
 
KBCategory: kbprg kbcode
KBSubcategory:
 
Additional reference words: 4.00
=============================================================================
Copyright Microsoft Corporation 1995.
