Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

COMAddIns Property [Visio 2003 SDK Documentation]

Office 2003

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

objsRet = object.COMAddIns

objsRet     A collection of COMAddIn objects that provide information about a COM add-in registered in the registry.

object     Required. An expression that returns an Application object.

Version added

2002

Remarks

The COM add-ins that are currently registered are listed in the COM Add-Ins dialog box (on the Tools menu, point to Macros, and then click COM Add-ins).

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

  1. On the Tools menu, point to Macros, and then click Visual Basic Editor.
  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




Show:
© 2015 Microsoft