SetActivePageByID Method

Makes active the page of the document with the specified ID (the ID property).

Applies to: Document object

Syntax

object.SetActivePageByID ( pageID )

The SetActivePageByID method syntax has these parts:

Part Description
object Required. An expression that returns a Document object.
pageID Required. An expression that returns a Long value. The ID (ID property) of the page to make active.

Remarks

If there is no page with the specified pageID in the document, the SetActivePageByID method doesn't change the active page of the document. To get a Page object, that corresponds to the active page of the document, use the ActivePage property.

 

See Also

ActivePage property, SetActivePage method, Page object