PageIndex Property

Microsoft Word Visual Basic

PageIndex Property

Returns a Long that represents the page number on which the specified break occurs.

expression.PageIndex

expression    Required. An expression that returns a Break object.

Example

The following code returns the page number on which the specified break occurs.

    ActiveDocument.ActiveWindow.Panes(1).Pages(1).Breaks(1).PageIndex