Some solutions require more than shapes and templates. For example, you might need to create drawings based on data that changes from day to day, such as an organization chart that is generated from a list of names and titles in a database. You can automate repetitive tasks and modify the Microsoft Office Visio user interface by writing programs that incorporate the functionality of Visio simply by using its objects.
A program in a Visio solution can be written in any programming language that supports Automation, such as Microsoft Visual Basic for Applications (VBA), Microsoft Visual Basic, or C++.
About Automation
The way that objects in an application such as Visio are related to each other, along with each object's properties (data), methods (behavior), and events, is called the program's object hierarchy or object model. In the Visio object model, most objects correspond to items that you can see and select in the Visio user interface. For example, a Shape object represents a shape in a drawing.
Using Automation, a program can control a Visio drawing by accessing its objects and then using their properties, methods, events, and interfaces. For an overview of Automation, see the Automation Reference (on the Help menu, click Developer Reference).
Using the Visual Basic Editor
You build your VBA programs in the Visual Basic Editor. To open the editor, on the Tools menu, point to Macros, and then click Visual Basic Editor (or press ALT+F11).
For detailed information about using the VBA development environment and writing VBA code, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu. For help on a specific keyword, select the keyword in the code window, and then click F1.