2011-07-28 48 views
0

我想知道是否有一种方法来确定是否为MS Powerpoint文件启用或禁用pagenumber属性?如何识别pagenumber是否打开/关闭.pptx(MS powerpoint)文件?

到目前为止,我的研究使我这个post

在此我们需要阅读演示的幻灯片,才能使用 HeadersFooters.SlideNumber.Visible属性。

是否有一种全局的方式来将整个演示文稿进行识别?

例如:Presentation.SlideNumber.Visible?

PS:有没有办法做到这一点.ppt文件以及?

谢谢 Yasindu。

回答

0

每张幻灯片都可以有页码可见或不可见。

Dim oSl as Slide 
For Each oSl in ActivePresentation.Slides 
If oSl.HeadersFooters.SlideNumber.Visible Then 
    Debug.Print "Your slides, if not days, are numbered" 
Else 
    Debug.Print "Slides without number. This one, anyhow." 
End If