Event firing problems in Project 2003

Hello,

I am having problems with something that should be very simple. I want to implement some VBA code to run during the Project_BeforeSave event and I experience the following:

  • I create a new project plan.
  • I add test code (just a msgbox) to the event handler for the corresponding Project object.
  • I save the plan and the code fires as expected. I repeat this N times and it always works.
  • I close Project.
  • I re-open the same project plan as above.
  • I save the plan (with or without changes made) and the event code does not fire. I open the VBA editor and the code is intact. No matter what I do now, the event code never fires again.

I have also tried implementing new code in the BeforeSave event after closing and re-opening (also tried other events) and nothing will get the events to fire again. It's as though I have to do something to wake up event handling

In each case, I am testing this with saving the plan as a .MPP file. In reality I need this to work in a Project Server 2003 environment, but I am trying to remove as many variables as possible to isolate the problem.

Furthermore, I really want to implement this code in the global.mpt file so that the event code would fire for any project plan. This is how it is advertised to work, but I have not been able to get past the problem above yet.

Thanks in advance for any help,

Mark



Answer this question

Event firing problems in Project 2003