I want to check if addin is installed and what it refers to. Below is the verification code to add. How can I check if the link refers to excel.
By the link I mean Tools> Addins> Addins Dailog box> If add-ons are installed, check if the add with the specific name is checked.
I would prefer without any loop.
Sub Demo() Dim b As Boolean b = CheckAddin("Solver add-in") MsgBox "Solver is " & IIf(b, "", "not ") & "installed" End Sub Function CheckAddin(s As String) As Boolean Dim x As Variant On Error Resume Next x = AddIns(s).Installed On Error Goto 0 If IsEmpty(x) Then CheckAddin = False Else CheckAddin = True End If End Function
source share