Understanding the Visio object model

An object model defines how the various objects and collections relate to each other, and their properties, methods, and events. Knowing how to navigate around it is essential for writing quick code in VBA, or more capable code for an add-in or add-on.

Starting with the Application object

The top-level object is the Visio Application object itself. This object contains a collection of documents that are currently open.


Actually, there is also the InvisibleApp object, which a developer can use to interact with a diagram without the Visio application interface appearing on the screen.

Templates, drawings, and stencils are all types of Visio documents, although the user only sees stencils on the panels of shapes ...

Get Mastering Data Visualization with Microsoft Visio Professional 2016 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.