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 Explici

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

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?
 
A

A. Faisal Shaazi

Hi Group,

I share Brad's problem but with not just these events - all the events under
the Project object are
not triggered.
Events under the Application object works fine (shown below) though, so I
know this pattern is workable.
Private Sub Application_NewProject(ByVal pj As Project)
.. do something...
End Sub

Anyone from MS subscribing to this newsgroup can give us any help?

thanks.
AF Shaazi

Brad said:
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