Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically install add-in into Excel

Status
Not open for further replies.

MDA

Technical User
Joined
Jan 16, 2001
Messages
243
Location
US
Hi all,

I have an Excel add-in that is installed in a special folder using MS installer. Is there a way that I can programmatically install the add-in into Excel and select it as an add in, without any user interaction? Keep in mind that I have to install the add-in xla file in a special directory.

Thanks for any ideas!

Regards,

MDA
 
In case anyone needs the code for this task, I figured it out....

------I used a VB application to do this -----

Private Sub Form_Load()
Dim oXL As Object, oAddin As Object
Set oXL = CreateObject("Excel.Application")
oXL.Workbooks.Add
Set oAddin = oXL.AddIns.Add("C:\Program Files\Myapp\MyAddin.xla", True)
oAddin.Installed = True
oXL.Quit
Set oXL = Nothing

End Sub
-----------------------

MDA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top