Chapter 12. Visio VBA Automation Basics

IN THIS CHAPTER

  • Properties, Methods, and References

  • Early Versus Late Binding of Object Variables

  • When, Where, and How to Run your Automation Program

  • VB-Specific Files in Visio

  • Interpreting the Command String

Let's get things started by dissecting a simple Visio Automation application. The purpose of this automation code is to retrieve the name of a selected SmartShape symbol in the current page of the current Visio diagram.

This code is found in a Visio diagram called GetShape.VSD. This is found on the companion CD for this book. In order to run this application, select the truck on the page, and then select Tools, Macros, ModuleGetShape, GetShape from the menus. When the application is launched, it executes ...

Get Professional Development with Visio® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.