Compartilhar via


COMAddIns Property

Returns a COMAddIns collection that represents all the Component Object Model (COM) add-ins currently loaded in Microsoft Outlook.

expression**.COMAddIns**

*expression   * Required. An expression that returns an Application object.

Example

This Microsoft Visual Basic for Applications (VBA) example displays the number of COM add-ins currently loaded.

Dim myOlApp As New Outlook.Application
Private Sub CountCOMAddins()
    MsgBox "There are " & _
        myOlApp.COMAddIns.Count & " COM add-ins."
End Sub

If you use Microsoft Visual Basic Scripting Edition (VBScript) in a Microsoft Outlook form, you do not declare an Application object variable. This example shows how to perform the same task using VBScript code in an Outlook form.

Sub Commandbutton1_Click()
    MsgBox "There are " & _
       Application.COMAddIns.Count & " COM add-ins."
End Sub

Applies to | Application Object