Page.Move method (Publisher)

Moves the specified page to the specified index in the Pages collection.

Syntax

expression.Move (Page, After)

expression A variable that represents a Page object.

Parameters

Name Required/Optional Data type Description
Page Required Long The index number of the Pages collection where the specified page will be moved.
After Optional Boolean True if the page is inserted after the specified index number of the Pages collection specified by the Page parameter. Default is True.

Example

This example moves the first page of the publication before the third page of the publication. This example assumes that there are at least three pages in the document.

ActiveDocument.Pages(1).Move page:=3, After:=False

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.