Andrew Painter
Posts: 42
Joined: 2008-06-26
|
I need to provide the ability for VBA Macros in Word to call Functions and Subs in my ADX COM Addin.
I cannot add a VBA Reference to MyAddin.dll directly, since it doesn't seem to be registered as a COM component in its own right. Can I make my MyAddin.DLL register as a COM Component, add a Word VBA reference to it, and call functions directly in macros?
Thanks,
Andrew |
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
Hi Andrew.
To access the add-in from the VBA project please use the Object property of the COMAddIn interface.
Application.COMAddIns.Item("<add-in progID>").Object |
|