none
project professional 2010: macro to check which baseline has already been saved RRS feed

  • Question

  • Hi,

    I need to automate saving a baseline using a macro. I am able to save a baseline using the "BaselineSave All:=True, Copy:=0, Into:=12" but what I need to do is first check if a baseline has been saved first so that I will not overwrite this baseline. 

    So what I need to do is loop over all baseline and check which baseline is empty and which has been saved previously. When I find which ones are empty, then I pick which baseline out of the empty ones I need to save and save it.

    Thanks,
    George 

    Friday, April 29, 2011 11:12 AM

Answers

  • Hi George,

    you can loop through all baselines and check their save date:
    For i = 0 To 10
         IsDate (ActiveProject.BaselineSavedDate(i))
    Next i

    Does that help?
    Barbara

    • Marked as answer by geo_d Friday, April 29, 2011 12:18 PM
    Friday, April 29, 2011 11:27 AM
    Moderator