COMAddIns Property

Microsoft FrontPage Visual Basic

Returns a COMAddIns collection that represents all the Component Object Model (COM) add-ins currently loaded in Microsoft FrontPage. These are listed in the COM Add-Ins dialog box (Add-Ins command on the Tools menu).

expression.COMAddIns

expression    Required. An expression that returns an Application object.

Remarks

All of the FrontPage add-ins that are registered in the Microsoft Windows Registry are located under the following key:

HKEY_CURRENT_USER\Software\Microsoft\Office\version\FrontPage\AddIns

Add-ins designed for administrators are registered under:

HKey_Local_Machine\Software\Microsoft\Office\version\FrontPage\Addins

Example

The following example returns the number of add-ins available to FrontPage.

Private Sub GetCOMAddIns()
    Dim myWeb As WebEx
    Dim myAddinCount As Integer

    Set myWeb = ActiveWeb
    myAddinCount = Application.COMAddIns.Count

End Sub