Project_BeforeSave does not trigger

C

Chirlu

Hallo!

environmemt: Project Server 2007

I place the code
Private Sub Project_BeforeSave(ByVal pj As MSProject.Project)
MsgBox "Project Just Saved - (testing BeforeSave event handler)"
End Sub
in a new created project and it works fine.

Whenever I add this to an existing project the code, change a task in the
project and save, the code is not executed.
Any ideas what I have to change / where the problem is?

Thanks
 
C

Chirlu

Hallo!

a) Yes, SP1 is installed.
b) We found the solution. The macro security has to be changed to low in
order to get the macros working.

Thanks and by
 
J

jlandry

Hello Chirlu,

Here are the main "Events" that you could use in order to put you code
depending on what action users may take:

1. Private Sub Project_Activate(ByVal pj As Project)

- Fired everytime a user select/open a project and brings it to front

2. Private Sub Project_BeforeSave(ByVal pj As Project)

- Fired everytime a user create a New project or save it using save pop
up windows. In order to do so, it has to be newly created. This pop up window
won't open for existing project.

3. Private Sub Project_Change(ByVal pj As Project)

- Fired everytime a project is being edited.

Hope this help.

Jean
 

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