1 out of 9 rated this helpful - Rate this topic

Chapter 15, Programming Visio with VBA

Office XP

Chapter 15, Programming Visio with VBA

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…

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

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

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

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

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

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

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.