View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] mgramos@gmail.com is offline
external usenet poster
 
Posts: 1
Default 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