以下是引用downbaidu在2008-2-29 19:32:47的发言:老大,还有一个问题,就是如何一次将ppt中的所有页眉页脚,全部删除。用宏操作。 我录了个宏,请楼主测试一下: Option Explicit Sub Macro1() On Error Resume Next If ActivePresentation.HasTitleMaster Then With ActivePresentation.TitleMaster.HeadersFooters With .DateAndTime .Format = ppDateTimeMdyy .Text = "" .UseFormat = msoFalse .Visible = msoTrue End With .Footer.Visible = msoFalse .SlideNumber.Visible = msoFalse End With End If With ActivePresentation.SlideMaster.HeadersFooters With .DateAndTime .Format = ppDateTimeMdyy .Text = "" .UseFormat = msoFalse .Visible = msoTrue End With .Footer.Visible = msoFalse .SlideNumber.Visible = msoFalse End With With ActivePresentation.Slides.Range.HeadersFooters With .DateAndTime .Format = ppDateTimeMdyy .Text = "" .UseFormat = msoFalse .Visible = msoTrue End With .Footer.Visible = msoFalse .SlideNumber.Visible = msoFalse End With End Sub
|