Object Model Reference : Classes : P : Page : Methods : Page.MoveTo |
Sub MoveTo(Index As Long)
Member of Page
The MoveTo method moves a page to a specified position in the document.
Parameter
|
Description
|
Index
|
Specifies a new index number for the page, thereby repositioning the page in the Pages collection
|
The following VBA example moves the second page to the beginning of the document.
Sub Test() |
ActiveDocument.Pages(2).MoveTo 1 |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.