Page object (Word)

Represents a page in a document. Use the Page object and the related methods and properties for programmatically defining page layout in a document.

Remarks

Use the Item method to access a specific page in a document. The following example accesses the first page in the active document.

Dim objPage As Page 
 
Set objPage = ActiveDocument.ActiveWindow _ 
 .Panes(1).Pages.Item(1)

To access the page number, use the Information property of a Range or Selection object, or the PageIndex property of a Break object that belongs to the Breaks collection of the specified Page object.

The Top and Left properties of the Page object always return 0 (zero) indicating the upper-left corner of the page. The Height and Width properties return the height and width in points (72 points = 1 inch) of the paper size specified in the Page Setup dialog or through the PageSetup object. For example, for an 8-1/2 by 11 inch page in portrait mode, the Height property returns 792 and the Width property returns 612. All four of these properties are read-only.

Methods

Name
SaveAsPNG

Properties

Name
Application
Breaks
Creator
EnhMetaFileBits
Height
Left
Parent
Rectangles
Top
Width

See also

Word Object Model Reference

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.