CountAddIns()

Syntax

CountAddIns()

Remarks

Returns the number of global templates and Word add-in libraries (WLLs) in the list of global templates and add-ins in the Templates And Add-ins dialog box (Templates command, File menu).

Example

This example unloads all global templates whose filenames contain the text ".DOT" in the list of global templates and add-ins.


For i = 1 To CountAddIns()
    a$ = GetAddInName$(i)
    If InStr(a$, ".DOT") <> 0 Then
        AddInState a$, 0
    End If
Next i

See Also

AddAddIn, AddInState, ClearAddIns, DeleteAddIn, GetAddInId(), GetAddInName$()