Close event (MSProject 2003)

A

Abhijit

Is there any mechanism to get a notification when the project closes. There
is an event "BeforeClose" (on Project document) or "ProjectBeforeClose" (on
Project Application) which is fired when the document is ABOUT to be closed
but BEFORE the user is presented an option to SAVE the document.

Now the problem is, if the user is prompted to save the document the user
has option to CANCEL which cancel's the CLOSE operation and the document is
not closed, hence the BeforeClose or ProjectBeforeClose events are not really
useful.

Any mechanism to trap before the document is really closed?

Ab
 
J

John

Abhijit said:
Is there any mechanism to get a notification when the project closes. There
is an event "BeforeClose" (on Project document) or "ProjectBeforeClose" (on
Project Application) which is fired when the document is ABOUT to be closed
but BEFORE the user is presented an option to SAVE the document.

Now the problem is, if the user is prompted to save the document the user
has option to CANCEL which cancel's the CLOSE operation and the document is
not closed, hence the BeforeClose or ProjectBeforeClose events are not really
useful.

Any mechanism to trap before the document is really closed?

Ab

Abhijit,
I think you just answered your own question. If the user hits "Cancel"
the document is not closed so why would you expect either Close Event to
fire? They only fire if the project is in fact closed.

John
Project MVP
 
A

Abhijit

Thanks John.

Let me explain with an example:

Multiple team leaders work on same MPP to update their own tasks. I am
writing a script to record the time (UTC) of opening and closing (not saving)
of any MPP and then do lot of other background processing on the closed mpp.

To record the close time (not the last saved timing), I need to ensure that
document is really closed. If I record the time during one of these
notifications fired by MPP, then it will not give me the exact closing time.

Seems stuck.
--------------------------------------------------
 

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