Share via


HeadersFooters.DateAndTime Property

PowerPoint Developer Reference

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.

Visual Basic for Applications
  Set myPres = Application.ActivePresentation
With myPres.SlideMaster.HeadersFooters.DateAndTime
    .Format = ppDateTimeMdyy
    .UseFormat = True
End With

See Also