GetAddInID()

Syntax

GetAddInID(AddIn$)

Remarks

Returns a number corresponding to the specified global template or add-in's position in the list of global templates and add-ins in the Templates And Add-ins dialog box (Templates command, File menu): 1 corresponds to the first template or add-in, 2 to the second, and so on. If AddIn$ is not currently a global template or add-in, GetAddInID() returns 0 (zero).

Argument

Explanation

AddIn$

The path (if necessary) and filename of the global template or Word add-in library (WLL).


Example

This example displays one of two messages, depending on whether the specified template is currently loaded. On the Macintosh, substitute a path and filename such as HD:TEMPLATES:MY TEMPLATE.


id = GetAddInID("C:\TEMPLATES\MYDOT.DOT")
If id > 0 Then
    MsgBox "MYDOT.DOT is global template number" + Str$(id) + "."
Else
    MsgBox "MYDOT.DOT is not currently a global template."
End If

See Also

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