PRJ: Macro Recorder Does Not Record Window Commands (112994)



The information in this article applies to:

  • Microsoft Project 2000
  • Microsoft Project 98 for Windows
  • Microsoft Project for Windows 95 4.1
  • Microsoft Project for Windows 4.0
  • Microsoft Project for the Macintosh 4.0

This article was previously published under Q112994

SYMPTOMS

In Microsoft Project, if you use any of the following window commands while the macro recorder is running, nothing is recorded:

Restore
Move
Size
Minimize
Maximize
Scroll
Split

NOTE: This behavior applies to the Microsoft Project application window as well as to document windows.

WORKAROUND

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers 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 requirements.
To use any of the above commands in a macro in Microsoft Project, edit the macro and type the command instead of using the macro recorder. For example, to restore the application window, use the WindowState property of the Application object as follows:
   Application.WindowState=pjNormal
				
To restore the document window, use the WindowState property of the ActiveWindow object as follows:
   ActiveWindow.WindowState=pjNormal
				

REFERENCES

For more information about the WindowState Property, choose the Search button in Help and type:

WindowState


Modification Type:MajorLast Reviewed:6/23/2005
Keywords:kbbug kbnofix kbusage KB112994