Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
We have an Automation Add-In that we developed in C# (2.0) which we are
calling from the worksheet in Excel (2003). We want to be able to call functions in that AddIn from VBA code in teh workbook as well. If it was a COM Add-IN, we could call Application.COMAddIns.Item("TestAutomationAddIn.Fu nctions").Object to get a handle to the AddIn and make calls on it, but the Application.AddIns Collection (where Automation AddIns are accessed) does not expose the Object property. How can I get a handle to my Automation AddIn? thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
while you are waiting for an answer here why not also post in
microsoft.public.office.developer.automation microsoft.public.office.developer.programming -- Regards, Tom Ogilvy "Matthew Wieder" wrote: We have an Automation Add-In that we developed in C# (2.0) which we are calling from the worksheet in Excel (2003). We want to be able to call functions in that AddIn from VBA code in teh workbook as well. If it was a COM Add-IN, we could call Application.COMAddIns.Item("TestAutomationAddIn.Fu nctions").Object to get a handle to the AddIn and make calls on it, but the Application.AddIns Collection (where Automation AddIns are accessed) does not expose the Object property. How can I get a handle to my Automation AddIn? thanks! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I posted in the automation forum as well, but the issue has mroe to do with
Excel since Excel is the only office app the supports "automation add-ins" (as opposed to "COM add-ins"). Awaiting a response... "Tom Ogilvy" wrote: while you are waiting for an answer here why not also post in microsoft.public.office.developer.automation microsoft.public.office.developer.programming -- Regards, Tom Ogilvy "Matthew Wieder" wrote: We have an Automation Add-In that we developed in C# (2.0) which we are calling from the worksheet in Excel (2003). We want to be able to call functions in that AddIn from VBA code in teh workbook as well. If it was a COM Add-IN, we could call Application.COMAddIns.Item("TestAutomationAddIn.Fu nctions").Object to get a handle to the AddIn and make calls on it, but the Application.AddIns Collection (where Automation AddIns are accessed) does not expose the Object property. How can I get a handle to my Automation AddIn? thanks! |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The automation add in exists as a COM dll - right?
Do you want to access the same instance of the automation addin? I don't know how to do that. If you want to access an instance then simply add a reference to the dll in your VBA project. -- www.alignment-systems.com "Matthew Wieder" wrote: I posted in the automation forum as well, but the issue has mroe to do with Excel since Excel is the only office app the supports "automation add-ins" (as opposed to "COM add-ins"). Awaiting a response... "Tom Ogilvy" wrote: while you are waiting for an answer here why not also post in microsoft.public.office.developer.automation microsoft.public.office.developer.programming -- Regards, Tom Ogilvy "Matthew Wieder" wrote: We have an Automation Add-In that we developed in C# (2.0) which we are calling from the worksheet in Excel (2003). We want to be able to call functions in that AddIn from VBA code in teh workbook as well. If it was a COM Add-IN, we could call Application.COMAddIns.Item("TestAutomationAddIn.Fu nctions").Object to get a handle to the AddIn and make calls on it, but the Application.AddIns Collection (where Automation AddIns are accessed) does not expose the Object property. How can I get a handle to my Automation AddIn? thanks! |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes, I want to access the same instance as the automation addin. As I
mentioned, this can be done with a COM AddIn by getting Application.COMAddIns.Item("TestAutomationAddIn.Fu nctions").Object however, an automation addin is not part of the comaddins collection. However, as you point out, it IS a 'COM dll' and should be accessable from the VBA. Can someone help? thanks! John.Greenan wrote: The automation add in exists as a COM dll - right? Do you want to access the same instance of the automation addin? I don't know how to do that. If you want to access an instance then simply add a reference to the dll in your VBA project. |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes, I want to access the same instance as the automation addin. As I
mentioned, this can be done with a COM AddIn by getting Application.COMAddIns.Item("TestAutomationAddIn.Fu nctions").Object however, an automation addin is not part of the comaddins collection. However, as you point out, it IS a 'COM dll' and should be accessable from the VBA. Can someone help? thanks! John.Greenan wrote: The automation add in exists as a COM dll - right? Do you want to access the same instance of the automation addin? I don't know how to do that. If you want to access an instance then simply add a reference to the dll in your VBA project. |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Is it a problem to set a reference to the dll in your projects? I've built an automation addin in vb6 (with Function Wizard descriptions) that I can reference without problems, albeit with a small detour Sub AutomAddinTest() Dim udf As UDFdemo.Functions Set udf = New UDFdemo.Functions debug.print = udf.UDFtest(Empty, Empty, Empty) End Sub -- keepITcool | www.XLsupport.com | keepITcool chello nl | amsterdam Matthew Wieder wrote in Yes, I want to access the same instance as the automation addin. As I mentioned, this can be done with a COM AddIn by getting Application.COMAddIns.Item("TestAutomationAddIn.Fu nctions").Object however, an automation addin is not part of the comaddins collection. However, as you point out, it IS a 'COM dll' and should be accessable from the VBA. Can someone help? thanks! John.Greenan wrote: The automation add in exists as a COM dll - right? Do you want to access the same instance of the automation addin? I don't know how to do that. If you want to access an instance then simply add a reference to the dll in your VBA project. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calling Excel Automation Add-In in VBA | Excel Programming | |||
Calling Excel Automation Add-In in VBA | Excel Programming | |||
Repost Excel Server Problem | Excel Programming | |||
RePost - Calling a Macro from a key | Excel Programming | |||
repost: Print *.tif file from excel vba | Excel Programming |