Project_Open

B

Brad

I want to add VBA macro code to the Enterprise Global so that the code
is pushed out to all associates on Project Server. That conceptually
works, except on the following events:

Option Explicit

Private Sub Project_Activate(ByVal pj As Project)
MsgBox pj.Name & " Activate Event"
End Sub
Private Sub Project_BeforeClose(ByVal pj As Project)
MsgBox pj.Name & " BeforeClose Event"
End Sub
Private Sub Project_BeforeSave(ByVal pj As Project)
MsgBox pj.Name & " BeforeSave Event"
End Sub
Private Sub Project_Open(ByVal pj As Project)
MsgBox pj.Name & " Open Event"
End Sub

I have tried placing this code in both the Microsoft Project Object
(ThisProject) and as a Module. Does anyone know how to make this code
work?
 

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