Application.COMAddIns Property (Visio)

Returns a reference to the COMAddIns collection that represents all the Component Object Model (COM) add-ins currently registered in Microsoft Visio. Read-only.

Version Information

Version Added: Visio 2002

Syntax

expression .COMAddIns

expression A variable that represents an Application object.

Return Value

Object

Remarks

The COM add-ins that are currently registered are listed in the COM Add-Ins dialog box (click the File tab, click Options, click Add-Ins, and then click Go).

To get information about the object returned by the COMAddIns property:

  1. In the Code group on the Developer tab, click Visual Basic.

  2. On the View menu, click Object Browser.

  3. In the Project/Library list, click Office.

  4. Under Classes, examine the class named COMAddIns.

Example

This macro shows how to use the COMAddIns property to list the COM add-ins registered with Visio.

 
Public Sub COMAddIns_Example()  
 
    Dim vsoCOMAddIns As COMAddIns  
    Dim vsoCOMAddIn As COMAddIn  
 
    'Get the set of COM add-ins.  
    Set vsoCOMAddIns = Application.COMAddIns  
 
    'List each COM add-in in the Immediate window. 
    For Each vsoCOMAddIn In vsoCOMAddIns  
        Debug.Print vsoCOMAddIn.Description  
    Next 
 
End Sub