I've created an excel addin and copied this file using a batch file to the users addin directory.
Now I want this addin to be installed automatically when excel is started because I don't want the users to make the developer toolbar visible and subsequently go to the addins and activate this addin.
Is there a way to activate (install) an addin by starting EXCEL ?
I've tried the code below but this doesn't work:
Now I want this addin to be installed automatically when excel is started because I don't want the users to make the developer toolbar visible and subsequently go to the addins and activate this addin.
Is there a way to activate (install) an addin by starting EXCEL ?
I've tried the code below but this doesn't work:
Code:
Private Sub Workbook_Open()
For i = 1 To AddIns.Count
If AddIns(i).Name = "LIMStools.xlam" Then AddIns(i).Installed = True
Next i
End Sub