HeadersFooters.DateAndTime property (PowerPoint)

Returns a HeaderFooter object that represents the date and time item that appears in the lower-left corner of a slide or in the upper-right corner of a notes page, handout, or outline. Read-only.

Syntax

expression. DateAndTime

expression A variable that represents a HeadersFooters object.

Return value

HeaderFooter

Example

This example sets the date and time format for the slide master in the active presentation. This setting will apply to all slides that are based on this master.

Set myPres = Application.ActivePresentation

With myPres.SlideMaster.HeadersFooters.DateAndTime

    .Format = ppDateTimeMdyy

    .UseFormat = True

End With

See also

HeadersFooters Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.