I developed an add-in to be used in Excel. I can happily access all my functions in the spreadsheet. However, I need to be able to access them in VBA. How do I reference functions from my add-in in VBA code.
You will need to reference XL and open the addin from there I think.
Dim XL as New Excel.Application
Dim WB as Excel.workbook
set WB=XL.OpenWorkbook("C:\Addin.xls"
debug.print wb.fYourFunction(argument1,...)
I've not tested this, but it seems ok, but there will be quite a large overhead as you are effectively opening XL too. Would be better to import the code into a module in Access. Let me know how you get on.
B
----------------------------------------------
Ben O'Hara
Thanks for your response. I forgot to mention that my add-in is .xll file and was developed in C++ . I tried your example, but XL.OpenWorkbook() property could not be found.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.