Home/ Reference/ Page

page.Activate()

Switches to this page. It moves the UI too, which is slow — skip it in batch code where you can.

Signature

page.Activate()

Notes

Switches to this page. It moves the UI too, which is slow — skip it in batch code where you can.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
page2 = doc.Pages.Item(2)
page2.Activate()                         # switch to page 2 (this flips the view; avoid in batch loops)

print("Active page: ", doc.ActivePage.Name)

About this section: Page

Page — pages and page setup.

Other entries in this section