Global object (Visio)

The Microsoft Visio Global object is automatically available to Microsoft Visual Basic for Applications (VBA) code that is part of the VBA project of a Visio document. The Global object is not available to code in other contexts.

Remarks

Members of the Global object can be accessed without qualification. For example, to access the ActivePage member of the Global object, use the following code.

    Set vsoPage = ActivePage 

The preceding syntax is different from the syntax that you would use for accessing members of non-global objects. For example:

    Set vsoPage = vsoApplication.ActivePage

Note

The VBA project of every Visio document also has a class module called ThisDocument. When referenced from code in the VBA project, the ThisDocument module returns a reference to the project's Document object.

Properties

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.