Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default loading automation add-in for an instance of Excel

An update:

I've found that uninstalling first helps:

AddIns("MyAddin.ForExample").Installed = False
AddIns("MyAddin.ForExample").Installed = True

This kick-starts it but I then find my UDFs don't recalculate, whether I use
Calculate, ActiveSheet.Calculate or Range(...).Calculate.

I can get a UDF to update if it's in a VBA wrapper:

Function vbaUDF(a, b, c)
vbaUDF = Application.Run("MyAddin.ForExample.dllUDF", a, b, c)
End Function

as I guess this has the effect of recalculating BUT I DON'T WANT TO DO THAT!

Any ideas out there??


"Smallweed" wrote:

I know that when you start an instance of Excel with VBA code, the add-ins
don't load which means you have to open or install them individually in the
code. For an XLA that's fine but I'm using an automation add-in (in version
2002). I've tried the following line:

AddIns("MyAddin.ForExample").Installed = True

but this doesn't do the trick. Does anyone know a way or will I have to go
the old-fashioned route and develop a VBA wrapper formy DLL?

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
loading com addins with automation Mario Excel Programming 2 June 24th 05 02:42 PM
May be Automation AddIn loading problem!! Abhijit Excel Programming 0 June 6th 05 06:45 PM
Retrieving Current Excel Instance from Automation Add-IN mduncan Excel Programming 2 March 11th 05 10:49 PM
Excel Automation - loading text files varsha kashyap Excel Programming 0 October 18th 04 10:13 AM
Excel automation "Error loading DLL" Paul Hewson Excel Programming 0 January 5th 04 08:34 PM


All times are GMT +1. The time now is 07:05 AM.

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

About Us

"It's about Microsoft Excel"