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

Pages Object (Publisher)

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

Represents all the pages in a publication. The Pages collection contains all the Page objects in a publication.

Example

Use the Add method to add a new page to a publication. The following example adds a new page and a shape to the active publication.

Sub AddPageAndShape() 
 With ActiveDocument.Pages.Add(Count:=1, After:=1) 
 With .Shapes.AddShape(Type:=msoShape5pointStar, _ 
 Left:=72, Top:=72, Width:=50, Height:=50) 
 .Fill.ForeColor.RGB = RGB(Red:=128, Green:=50, Blue:=255) 
 .Line.ForeColor.RGB = RGB(Red:=75, Green:=50, Blue:=255) 
 End With 
 End With 

End Sub

Methods

Name
Add
AddWizardPage
FindByPageID

Properties

Name
Application
Count
Item
Parent
© 2017 Microsoft