Running a Excel function from access vba
Hi,
I am having problem running a function defined in a module in excel
from access vba.
I am currently using:
myResponse = ObjXL.Run "myWorkbook.xls!myModule.myFunction", "myArg1"
The function in excel vba is defined:
Public Function myFunction(strArg1 as string) as boolean
msgbox strArg1
myFunction = True
End function
The error I get is
Run-time error '1004':
The macro 'myWorkbook.xls!myModule.myFunction' cannot be founf
Any ideas?
Thanks,
manuel
|