LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Installing Addin via Automation

I have an addin that I know functions correctly under normal
circumstances. If I manually add the addin via the excel UI, the
application addin installs correctly.

However, if I attempt to install the addin via automation, the
Workbook_AddinInstall method does not seem to run or at least does not
report errors back to the UI. I'm using the following code:

Dim oXL
Dim oAddin
Set oXL = CreateObject("Excel.Application")

oXL.Workbooks.Add
Set oAddin = oXL.AddIns.Add("C:\Program
Files\Company\Product\MacroFiles\Macro.xla")

oAddin.Installed = True

With this code the macro is automatically added in, but the
AddinInstall method clearly never runs or at least errors. For a
correct install I need this method to run. Any thoughts on this would
be greatly appreciated.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Referencing a com addin from a .net application via ole automation Luke Excel Programming 3 August 26th 05 01:39 PM
addIn functions in automation nicgendron Excel Programming 1 July 14th 05 10:35 AM
Automation COM Addin with Excel Puneet Excel Programming 0 July 12th 04 07:50 PM
Addin Not Installing zSplash Excel Programming 3 April 15th 04 07:40 PM
unknown menu appear when installing an AddIn Carl Excel Programming 0 December 23rd 03 09:19 AM


All times are GMT +1. The time now is 07:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"