HeaderFooter.UseFormat Property (PowerPoint)
Determines whether the date and time object contains automatically updated information. Read/write.
Syntax
expression .UseFormat
expression A variable that represents an HeaderFooter object.
Return Value
MsoTriState
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.
The value of the UseFormat property can be one of these MsoTriState constants.
Constant |
Description |
---|---|
msoFalse |
The date and time object is a fixed string. |
msoTrue |
The date and time object contains automatically updated information. |
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