Table of contents
TOC
Collapse the table of content
Expand the table of content

HeaderFooter.UseFormat Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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.

ConstantDescription
msoFalseThe date and time object is a fixed string.
msoTrueThe 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

See also

Concepts

HeaderFooter Object

© 2018 Microsoft