开发者

How to Identify whether pagenumber is on/off of a .pptx(MS powerpoint) file?

I would like to know if there is a way of identify whether pagenumber property is enabled or disabled for a MS Powerpoint file?

So far my research lead me to this post

In this we need to read the slides of the presentation, in order to use HeadersFooters.SlideNumber.Visible property.

Is there a global way of identifying this by just taking the presentation as a whole?

Ex: something like, Presentatio开发者_StackOverflow社区n.SlideNumber.Visible ???

PS: Is there a way to do this for .ppt files as well?

Thanks Yasindu.


I haven't tested it, but the PowerPoint Object Model Reference indicates you want to look at: Presentation.SlideMaster.HeaderFooters(i).SlideNumber.Visible


Each slide can have the page number visible or not.

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜