Application.Addons property (Visio)

Returns the Addons collection of an Application or InvisibleApp object. Read-only.

Syntax

expression.Addons

expression A variable that represents an Application object.

Return value

Addons

Remarks

The Addons collection includes an Addon object for each add-on in the folders specified by the AddonPaths property and for each add-on that is added dynamically to the collection by other add-ons.

Example

This Microsoft Visual Basic for Applications (VBA) macro shows how to get the Addons collection and add an add-on to it.

Before running this macro, replace path\filename with a valid path and file name for an add-on in your Visio project.

 
Public Sub Addons_Example() 
 
 Dim vsoAddons As Visio.Addons 
 Dim vsoAddon As Visio.Addon 
 
 'Add an add-on to the Addons collection. 
 Set vsoAddons = Visio.Addons 
 Set vsoAddon = vsoAddons.Add("path\filename") 
 
End Sub

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.