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.

Chapter 15, Programming Visio with VBA

Chapter 15, Programming Visio with VBA

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.

Any programming language that supports Automation can be used to write programs that access Microsoft® Visio® objects, get and set properties, invoke methods, and receive events. Visio provides a standard integrated development environment (IDE) for convenient development of Microsoft® Visual Basic® for Applications (VBA) projects.

If your solution will use Automation to control shapes and drawings, read or write data to or from external sources (such as a database), or interact with other applications, you can write VBA code in Visio to accomplish these tasks. The Visio VBA IDE is consistent with the IDE in all VBA-enabled applications, for example, Microsoft® Office or Office XP applications. If you've used VBA in any of these applications, the Visio environment will be familiar to you.

This chapter provides a brief overview of some common tasks using VBA in Visio. For complete details about using the VBA development environment and writing VBA code, see the Microsoft Visual Basic Help.

In this chapter…

https://msdn.microsoft.com/en-us/library/office/aa201750(v=office.10).aspx Using the Visual Basic Editor

https://msdn.microsoft.com/en-us/library/office/aa201751(v=office.10).aspx Creating a VBA Project

https://msdn.microsoft.com/en-us/library/office/aa201752(v=office.10).aspx Using the Visio Type Library

https://msdn.microsoft.com/en-us/library/office/aa201753(v=office.10).aspx Using the Global and ThisDocument Objects

https://msdn.microsoft.com/en-us/library/office/aa201754(v=office.10).aspx Running VBA Code from Visio

https://msdn.microsoft.com/en-us/library/office/aa201755(v=office.10).aspx Handling Errors

https://msdn.microsoft.com/en-us/library/office/aa201756(v=office.10).aspx Managing a VBA Project

Show:
© 2015 Microsoft