Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Macro from batch file 2

Status
Not open for further replies.

Krusher

IS-IT--Management
Jan 2, 2003
70
US
Folks,
Is there a way to run "startup" macro in a shortcut for Project. It would be something similiar to the command-line switch /x for Microsoft Access. So, something like this, but with a switch for Project:

"C:\Program Files\Microsoft Office\OFFICE11\WINPROJ.EXE" "c:\myprojectfile.mpp" /x "mymacro"

Any help would be greatly appreciated!

-K
 
There are no command line startup switches that will do what you want. (There are several for Project Server but they refer to specific elements such as the server or logon password.)

You could create the macro within the project (or in Global.mpt) and then invoke it from the Project_Open event.

If you put the macro in Global.mpt then you have to make certain that everyone is using the same Global.mpt; if you put it in the project then you have to make certain that it is in every project.

 
Actually I found that Auto_Open worked best for me.

Sub Auto_Open()
BlahSub
InputBox ("Sub Done!")
End Sub

Hope that helps... :)

-Ethan

----------------------------------------------------
Publish your Project task to your website for Free!
Check out SQL2Project Today!
 
Thanks for the tips. Works perfect now :)

-K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top