Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

<Global> object

<Global> object

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

See also         https://msdn.microsoft.com/en-us/library/office/aa188726(v=office.10).aspx Properties         Methods         Events

GlobalMultiple Objects

The 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 Visio global object is not available to code in other contexts.

Version added

4.5

Remarks

Members of the global object can be accessed without qualification. For example, to access the ActivePage member of the global object:

Set pageObj = ActivePage

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

Set pageObj = AppObj.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.

Show: