FAQ: TBarCode Office Word Add-In
How Can I Verify if the Add-in Has Been Loaded?
How Can I Verify if the Add-in Has Been Loaded?
You can use the following VBA code to verify if the add-in is available (loaded). You can show a warning (at startup or when clicking a button) if the add-in is missing.
Public Function IsTBarCodeWordAddInActive() As Boolean
Dim objAddIn As COMAddIn
IsTBarCodeWordAddInActive = False
For Each objAddIn In Word.Application.COMAddIns
If objAddIn.ProgID = "TECIT.TBarCode.WordAddIn" And InStr(objAddIn.Description, "11") Then
If objAddIn.Connect = True Then
IsTBarCodeWordAddInActive = True
End If
End If
Next
End Function
How to check if available:
If IsTBarCodeWordAddInActive() Then MsgBox "All OK :-)" Else MsgBox "TBarCode Word Add-In (V11) is missing!" End If