Help... Project_Open is not working

M

Mark Main

I have the following macro located in Module1 of 'ThisProject' and it's not
running when I open the project plan:

Option Explicit
Private Sub Project_Open(ByVal pj As Project)
Msgbox "On Open Confirmed."
End Sub

What am I doing wrong?
 
R

Rod Gill

Double-click ThisProject and put your code there, not in a separate module,
it won't work from Module1.

If your code is in ThisProject then do other macros work or is your login on
Macro Security of High?
 
M

Mark Main

Thanks, that worked... do you happen to know what command I use to completely
exit out of MS Project when the macro is done?
 
M

Mark Main

Thanks again for your help. I did some more playing around and figured out
how to close (exit) out of MS Project once I'm done with my macro code:

MSProject.FileExit
 

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