Axis.Format Property
Returns or sets the format for the automatically updated date and time. Read/write.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
ReadOnly Property Format As ChartFormat
Get
'Usage
Dim instance As Axis
Dim value As ChartFormat
value = instance.Format
ChartFormat Format { get; }
Property Value
Type: Microsoft.Office.Interop.PowerPoint.ChartFormat
PpDateTimeFormat
Remarks
The Format property applies only to HeaderFooter objects that represent a date and time (returned from the HeadersFooters collection by the DateAndTime property).
Make sure that the date and time are set to be updated automatically (not displayed as fixed text) by setting the UseFormat property to True.
The Format property value can be one of these PpDateTimeFormat constants.
ppDateTimeddddMMMMddyyyy |
ppDateTimedMMMMyyyy |
ppDateTimedMMMyy |
ppDateTimeFormatMixed |
ppDateTimeHmm |
ppDateTimehmmAMPM |
ppDateTimeHmmss |
ppDateTimehmmssAMPM |
ppDateTimeMdyy |
ppDateTimeMMddyyHmm |
ppDateTimeMMddyyhmmAMPM |
ppDateTimeMMMMdyyyy |
ppDateTimeMMMMyy |
ppDateTimeMMyy |
Examples
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 = True
.Format= ppDateTimeHmmss
End With