how to do a recalculation?

B

Bruno

in a procedure App_ProjectBeforeTaskChange I do following

based on the function NOW() I do some date calculations. It works fine.

If however a new day comes up and I open the project, I see no changes. So

I put an CalculateAll in Project_Open(ByVal pj As Project). But this

function would not start the calculations in APP_ProjectBeforeTaskChange.

How can I force MSProject to shoot the event APP_ProjectBeforeTaskChange?

Thanks for any ideas

Bruno
 
R

Rod Gill

That event only fires when you edit a task. So, just opening a project won't
fire it so the code will never run. The file_Open event fires when you open
a project.
 
R

Rod Gill

The open event always fires when the project is opened unless you have
macros disabled.
 
B

Bruno

Hi Rod,

I thought so too. To double check the situation, I put a STOP in my code.
Restarting the project, I could not see the STOP - changing a value, I ran
into this "breakpoint"

Could I sent my code to you?

Have a nice weekend

Bruno
 

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