PRJ: Running a Macro Automatically When You Start MS ProjectLast reviewed: September 26, 1997Article ID: Q128622 |
The information in this article applies to:
SUMMARYTo make a macro run automatically whenever the Microsoft Project icon is used to start Microsoft Project, edit the command line for the icon's properties so that a project containing an Auto_Open macro is opened automatically at startup. On the Macintosh, open the file which contains an Auto_Open macro.
MORE INFORMATIONThe following steps will cause an Auto_Open macro to be executed only if you start Microsoft Project by double-clicking the Microsoft Project icon or on the Macintosh, double-clicking the Microsoft Project file which contains the Auto_Open macro.
Microsoft Project does not automatically create a blank Project1 when the icon is set up to automatically open a project. To create a new project, you can use the FileNew method in the Auto_Open macro in STARTUP.MPP. If want to close STARTUP.MPP after you start Microsoft Project, add code to the Auto_Open macro to close it. For example, the following lines activate STARTUP.MPP and then close it without saving changes:
Projects("Startup.mpp").Activate FileClose save:=pjDoNotSaveFor additional information, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q126105 TITLE : "Auto_Open and Auto_Close Macros" |
Additional query words: 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |