Code not working in Project_Open file

J

Jon

Having a small problem with this. I am just trying at this point to get a
msgbox to display when I open a project. I followed an example and it still
will not work.
I have included the code below it is very simple and is in the area called
ThisProject(ProjectName) part of the project viewer and I am using Ms Project
2003


Private Sub Project_Open(ByVal pj As Project)
MsgBox "Hey this works"
End Sub

Any help will be greatly appreicated

Jon
 
J

Jan De Messemaeker

Hi Jon,

This will only fire when you open the project it is saved in.
To make it fire at the opening of any project, you have to store it in
ThisProject(Global.mpt)
HTH
 
R

Rod Gill

Just checking the basics, do you have Macro security set to medium or less?
If not macros won't run unless the macro is signed.

Set security By:
Select Tools, Macro, Security
Set medium security

Re-open the project file and see what happens.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top