Table of contents
Collapse the table of content
Expand the table of content

Document.Pages Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Returns a Pages collection representing all the pages in the specified publication.


expression. Pages

_expression_A variable that represents a Document object.


The following example returns the Pages collection of the active publication and reports how many pages there are.

Dim pgsTemp As Pages 

Set pgsTemp = ActiveDocument.Pages 

With pgsTemp 
 MsgBox "There are " &; .Count _ 
 &; " page(s) in the active publication." 
End With
© 2018 Microsoft