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
8 Types of Scholarships You Can Apply For
Equity Funding Involves Repayment
English Bulldog Puppies For Sale Under 1000 In Florida
Atvs For Sale By Owner Craigslist
Chase Bank Operating Hours
Ati Capstone Orientation Video Quiz
Directions To 401 East Chestnut Street Louisville Kentucky
Trade Chart Dave Richard
27 Places With The Absolute Best Pizza In NYC
Evita Role Wsj Crossword Clue
Ogeechee Tech Blackboard
Whiskeytown Camera
Slay The Spire Red Mask
Autozone Locations Near Me
Watch TV shows online - JustWatch
Nonne's Italian Restaurant And Sports Bar Port Orange Photos
Studentvue Columbia Heights
Alexandria Van Starrenburg
Me Cojo A Mama Borracha
Edicts Of The Prime Designate
Aaa Saugus Ma Appointment
UPS Store #5038, The
Maxpreps Field Hockey
How Taraswrld Leaks Exposed the Dark Side of TikTok Fame
Lines Ac And Rs Can Best Be Described As
Workshops - Canadian Dam Association (CDA-ACB)
City Of Durham Recycling Schedule
New Stores Coming To Canton Ohio 2022
Unity Webgl Car Tag
By.association.only - Watsonville - Book Online - Prices, Reviews, Photos
The Procurement Acronyms And Abbreviations That You Need To Know Short Forms Used In Procurement
Rainfall Map Oklahoma
King Soopers Cashiers Check
Armor Crushing Weapon Crossword Clue
Jt Closeout World Rushville Indiana
Siskiyou Co Craigslist
Miss America Voy Board
Where Can I Cash A Huntington National Bank Check
O'reilly Auto Parts Ozark Distribution Center Stockton Photos
Plato's Closet Mansfield Ohio
Chattanooga Booking Report
Tgh Imaging Powered By Tower Wesley Chapel Photos
Why The Boogeyman Is Rated PG-13
Dying Light Nexus
Saybyebugs At Walmart
Joey Gentile Lpsg
Author's Purpose And Viewpoint In The Dark Game Part 3
Acts 16 Nkjv
Vintage Stock Edmond Ok
Online TikTok Voice Generator | Accurate & Realistic
Goosetown Communications Guilford Ct
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.