Determines whether the date and time object contains automatically updated information. Read/write MsoTriState.
MsoTriState can be one of these MsoTriState constants. |
msoCTrue |
msoFalse The date and time object is a fixed string. |
msoTriStateMixed |
msoTriStateToggle |
msoTrue The date and time object contains automatically updated information. |
Remarks
This property applies only to a HeaderFooter object that represents a date and time (returned by the DateAndTime property). Set the UseFormat property of a date and time HeaderFooter object to True when you want to set or return the date and time format by using the Format property. Set the UseFormat property to msoFalse when you want to set or return the text string for the fixed date and time.
Example
This example sets the date and time for the slide master of the active presentation to be updated automatically and then it sets the date and time format to show hours, minutes, and seconds.
Set myPres = Application.ActivePresentation
With myPres.SlideMaster.HeadersFooters.DateAndTime
.UseFormat = msoTrue
.Format = ppDateTimeHmmss
End With