InvisibleApp.ActivePage Property
Visio Automation Reference |
Returns the active Page object. Read-only.
Version Information
Version Added: Visio 2.0
Syntax
expression.ActivePage(lpdispRet)
expression A variable that represents an InvisibleApp object.
Return Value
Page
Remarks
The ActivePage property returns a Page object only when the active window displays a drawing page; otherwise, it returns Nothing. To verify that a page is active, use the Is operator to compare the ActivePage property with Nothing.
It is possible to get the active window without qualification from the Microsoft Office Visio global object, which is automatically available to VBA code that is part of the VBA project of a Visio document. For example, you can use this code:
Visual Basic for Applications |
---|
|
Example
This Microsoft Visual Basic for Applications (VBA) macro shows how to get the active page without qualification from the Visio global object, which is automatically available to VBA code that is part of the VBA project of a Visio document.
Visual Basic for Applications |
---|
|
See Also