Record Macros In Visio. I would suggest you record a macro to get the code for most actions and then adjust for all objects. Whats the procedure there.

How to record a macro. Else. On the Visio Options dialog box select Trust Center.
List string lstMacros new List string.
In the Macros dialog box select the macro or add-on you want to run and then click Run. Have access to Micrisoft Visio. So Im having to record macros to show and hide layers which Im finding to be tedious and not scalable. In Excel you can select under Customize the Quick Access Toolbar the Macros entry in Choose commands from.