Home/ Reference/ Page

page.MoveTo(index)

Moves this page to position index. Use it to reorder pages.

Signature

page.MoveTo(index)

Notes

Moves this page to position index. Use it to reorder pages.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
third = doc.Pages.Item(3)
third.MoveTo(1)                          # move page 3 to the first position

print("Page order changed")

About this section: Page

Page — pages and page setup.

Other entries in this section