Setting BaselineSavedDate programmatically RRS feed

  • Question

  • Hi,

    I was wondering if it was possible to set the BaselineSavedDate to an arbitrary date using VBA (MSP 2007). I've tried several ways to do this but they all seem to fail.

    Example 1:

     Set ActiveProject.BaselineSavedDate(pjBaseline9) =


    Example 2:

     Dim myDate As Date
     myDate = DateValue("21/06/2011 16:26:00")
     ActiveProject.BaselineSavedDate(pjBaseline1) = myDate 


    Why am I trying to do this?

    I noticed that when you copy a baseline from one to another the save date also updates. Eg. when I copy Baseline8 to Baseline9 the BaselineSavedDate of Baseline9 will be the current date and not the date Baseline8 was originally saved. This poses some issues in the workflow that I've been asked to create.

    Thanks for your help.
    Thomas V
    Thursday, June 30, 2011 8:47 AM


All replies

  • Hi Thomas,

    The BaselineSaveDate is a read-only property that is maintained by the system itself, so you can't update this yourself.

    See alse:

    Regards, J
    Thursday, June 30, 2011 8:53 AM
  • Thanks Jeroen,

    I thought this might be the case.

    I had a similar question about whether or not one could query attributes associated with custom fields but I figure the answer's the same. I know you can set them using the CustomFieldProperties Method, it's a shame there is no way to know what the field is currently set to though.

    Have a nice afternoon,

    Thomas V.

    Thursday, June 30, 2011 12:14 PM