ActivePage property

Microsoft Visio Developer Reference

ActivePage property

        object;DAR_Objects_(A-M)_1015.htm">

Returns the active Page object.

Version added

2.0

Syntax

objRet = object.ActivePage

objRet

A Page object that represents the active page.

object

Required. An expression that returns the Application object that owns the 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.