Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Automaion Addin not loading properly!!

Hi,

We have some excel sheet where data is getting filled up by function inside
an automation addin dll. The excel sheets are launched from within another
..NET application. My problem is that when the excel sheets are launched the
AddIn is not getting loaded properly. So all the functions are not avaliable.

I have created a simple prototype where I have created a simple excel sheet
and used some of the functions from the same Addin and it works fine. Only
when another application is launching the excel Sheet, the problem comes it
seems.

Can anybody tell what I should do to load the Addins. Strangely the AddIn
check box is checked even though the Addin Functions do not show up in the
function list and the sheets cells do not get correct values.

Thanks in advance.
Abhijit




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Automaion Addin not loading properly!!


Abhijit,

when excel is opened thru automation addins are not loaded.

note if your addin is an xll or dll you need to call:
application.registerXLL("path for xll")

here are some examples for normal addins (xlas):

assumes XL is excel.application object
For Each ai In XL.AddIns
If lcase(ai.Name) = "myfirst.xla" Then
XL.Workbooks.Open(ai.FullName)Â*.RunAutoMacros 1
End If
Next
For Each ai In XL.AddIns
If lcase(ai.Name) = "mysecond.xla" Then
XL.Workbooks.Open(ai.FullName)Â*.RunAutoMacros 1
End If
Next
'in case you need the other addins...
For Each ai In XL.AddIns
if ai.installed then
if lcase(ai.name) < "myfirst.xla" _
and lcase(ai.name) < "mysecond.xla" then
XL.Workbooks.Open(ai.FullName)Â*.RunAutoMacros 1
End If
end if
Next

HTH
--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Abhijit wrote :

Hi,

We have some excel sheet where data is getting filled up by function
inside an automation addin dll. The excel sheets are launched from
within another .NET application. My problem is that when the excel
sheets are launched the AddIn is not getting loaded properly. So all
the functions are not avaliable.

I have created a simple prototype where I have created a simple excel
sheet and used some of the functions from the same Addin and it works
fine. Only when another application is launching the excel Sheet, the
problem comes it seems.

Can anybody tell what I should do to load the Addins. Strangely the
AddIn check box is checked even though the Addin Functions do not
show up in the function list and the sheets cells do not get correct
values.

Thanks in advance.
Abhijit

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Automaion Addin not loading properly!!

Hi Abhijit,

first i thought it's a problem with the framework. But the problem also
appears in unmanged code.

Starting excel from the commandline, seems to work.

--
Thomas

http://rtsoftwaredevelopment.de


"Abhijit" schrieb im Newsbeitrag
...
Hi,

We have some excel sheet where data is getting filled up by function

inside
an automation addin dll. The excel sheets are launched from within another
.NET application. My problem is that when the excel sheets are launched

the
AddIn is not getting loaded properly. So all the functions are not

avaliable.

I have created a simple prototype where I have created a simple excel

sheet
and used some of the functions from the same Addin and it works fine. Only
when another application is launching the excel Sheet, the problem comes

it
seems.

Can anybody tell what I should do to load the Addins. Strangely the AddIn
check box is checked even though the Addin Functions do not show up in the
function list and the sheets cells do not get correct values.

Thanks in advance.
Abhijit






Reply
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
Analysis Tool Pack addin into Excel and it is not loading pcrxtex Excel Discussion (Misc queries) 3 March 25th 08 10:29 PM
May be Automation AddIn loading problem!! Abhijit Excel Programming 0 June 6th 05 06:45 PM
addin loading issue howiefan Excel Discussion (Misc queries) 3 December 1st 04 11:10 PM
Run Macro when loading addin Mary[_7_] Excel Programming 3 September 7th 04 11:17 PM
Changing the Name of an Addin and loading worksheets off a network drive MikeCave[_2_] Excel Programming 0 June 4th 04 10:59 AM


All times are GMT +1. The time now is 06:39 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"