In addition, you can turn on the macro recorder and capture the actions of
using the organizer to move the modules. Then edit the code and put it in a
blank project. Set the Project_Open event to run this code
Private Sub Project_Open(ByVal pj As Project)
'your code here
MsgBox "foo"
End Sub
Note that the code for Project_Open goes in a different place than an
ordinary module
Open the VBA editor (ALT+F11)
In the Project Explorer window, find the current project, expand it to see
"Microsoft Project Objects" and then the ThisProject object. Double click on
that and a code window will open. Write the code there. You can just refer
to a macro in a module. So if you wrote a macro called MoveStuffToGlobal
then the code in the Project_Open section would say
Private Sub Project_Open(ByVal pj As Project)
MoveStuffToGlobal
End Sub
--
-Jack ... For project information and macro examples visit
http://masamiki.com/project
..