DateAndTime 属性

       

返回代表日期和时间项的 HeaderFooter 对象。这些日期和时间项出现在幻灯片的左下角或备注页、讲义或大纲的右上角。只读。

示例

本示例为当前演示文稿的母版幻灯片设置日期和时间格式。该设定将对所有基于该幻灯片母版的幻灯片有效。

Set myPres = Application.ActivePresentation
With myPres.SlideMaster.HeadersFooters.DateAndTime
    .Format = ppDateTimeMdyy
    .UseFormat = True
End With