Automatically Adjust Dates in a Project

I

Iain Carlin

Hi,

I have a macro that creates a new project each month based on a default
template for that project.

The macro needs to reschedule all the tasks bases on the first day of the
month. I can do this manually using the Adjust Dates button on the Analysis
Toolbar.

Question is, how do I achieve the same thing as Adjust Dates is doing, but
from within my macro?

Thanks,

Iain Carlin
 
I

Iain Carlin

I eventually found a work-around for this using PDS.

Instead of the macro using Project to create the new project from the
template, I now use PDS to create the project. With PDS you can specify a
start date in the Request. This achieves the same result as Adjust Dates once
the project is opened.

<Request>
<ProjectCreate>
<AutoPublish>0</AutoPublish>
<Project>
<ProjectName>MyName.Published</ProjectName>
<StartDate></StartDate>
<TemplateName>MyTemplate</TemplateName>
</Project>
</ProjectCreate>
</Request>

Hope it helps someone else.

Iain Carlin
 

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