About Automation (Visio) (2024)

  • Article

You can write programs to control Visio in Visual Basic for Applications (VBA), Visual Basic, Visual C++, any of the Visual Studio .NET languages, or in any programming language that supports Automation.

A program can use Automation to incorporate Visio drawing and diagramming capabilities or to automate simple repetitive tasks in Visio. For example, a program might generate an organization chart from a list of names and positions or print all of the masters on a stencil.

How a program uses automation to control Visio

A program controls Visio by accessing its objects and then using their properties, methods, and events.

  • Objects represent items you work with in the Visio application, such as documents, drawing pages, shapes, and cells containing formulas.

  • Properties are attributes that determine the appearance or behavior of objects. For example, a Shape object has a Name property, which represents the name of that shape.

  • Methods are actions provided by an object. For instance, a program can perform the Add method on a Page object. This is the same as adding a page to a document by choosing Blank Page on the Insert tab.

  • Events trigger code or entire programs. For example, an event can programmatically trigger code when a document is opened or trigger a program when a shape is double-clicked.

The VBA programming environment in Visio

Visio includes the Visual Basic for Applications (VBA) programming environment. To create, view, debug, and run programs in this environment, use the Visual Basic Editor:

  • Create VBA programs by inserting modules, class modules, and user forms into your VBA project and by writing code.

  • View VBA project items by choosing the project of an open Visio document in the Project Explorer. To view the Code window for individual items, open the appropriate folder in the Project Explorer and double-click the project item, or right-click the item and click View Code on the shortcut menu.

  • Debug VBA programs by adding breakpoints, including watch expressions, and stepping through code as it runs.

  • Run VBA macros in the following ways:

    • In the Visual Basic Editor: On the Run menu, choose Run Macro.

    • In Visio: In the Code group on the Developer tab, choose Macros.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.

About Automation (Visio) (2024)
Top Articles
Online Check-In: Everything You Need to Know in 2021
Can Shiba Inu Reach 1 Cent? • Price Analysis
Funny Roblox Id Codes 2023
Devotion Showtimes Near Xscape Theatres Blankenbaker 16
Po Box 7250 Sioux Falls Sd
Fat Hog Prices Today
855-392-7812
Stadium Seats Near Me
Fully Enclosed IP20 Interface Modules To Ensure Safety In Industrial Environment
Find All Subdomains
Es.cvs.com/Otchs/Devoted
Obituaries
Tanger Outlets Sevierville Directory Map
Joe Gorga Zodiac Sign
83600 Block Of 11Th Street East Palmdale Ca
shopping.drugsourceinc.com/imperial | Imperial Health TX AZ
Find The Eagle Hunter High To The East
The Blind Showtimes Near Showcase Cinemas Springdale
Skylar Vox Bra Size
Nhl Tankathon Mock Draft
Ratchet & Clank Future: Tools of Destruction
Nurse Logic 2.0 Testing And Remediation Advanced Test
Quest: Broken Home | Sal's Realm of RuneScape
Myhr North Memorial
R. Kelly Net Worth 2024: The King Of R&B's Rise And Fall
Plaza Bonita Sycuan Bus Schedule
Ecampus Scps Login
Baldur's Gate 3: Should You Obey Vlaakith?
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
The Creator Showtimes Near R/C Gateway Theater 8
Cowboy Pozisyon
His Only Son Showtimes Near Marquee Cinemas - Wakefield 12
1964 Impala For Sale Craigslist
FSA Award Package
Lininii
Restaurants Near Calvary Cemetery
Calculator Souo
Emily Katherine Correro
404-459-1280
T&J Agnes Theaters
Dr Adj Redist Cadv Prin Amex Charge
Can You Buy Pedialyte On Food Stamps
State Legislatures Icivics Answer Key
2023 Nickstory
Nba Props Covers
How to Quickly Detect GI Stasis in Rabbits (and what to do about it) | The Bunny Lady
Sig Mlok Bayonet Mount
Citroen | Skąd pobrać program do lexia diagbox?
Ohio Road Construction Map
Costner-Maloy Funeral Home Obituaries
Latest Posts
Article information

Author: Msgr. Benton Quitzon

Last Updated:

Views: 6032

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Msgr. Benton Quitzon

Birthday: 2001-08-13

Address: 96487 Kris Cliff, Teresiafurt, WI 95201

Phone: +9418513585781

Job: Senior Designer

Hobby: Calligraphy, Rowing, Vacation, Geocaching, Web surfing, Electronics, Electronics

Introduction: My name is Msgr. Benton Quitzon, I am a comfortable, charming, thankful, happy, adventurous, handsome, precious person who loves writing and wants to share my knowledge and understanding with you.