LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Access-to-Excel Automation.... Bob Barnes Excel Discussion (Misc queries) 2 June 16th 06 08:57 PM
Running SQL queries for Access using Excel VBA ibeetb Excel Programming 2 August 31st 05 07:56 AM
Running Access queries from Excel smartchick Excel Programming 4 January 3rd 05 11:23 AM
Getting Access Error Messages when running Access through Excel Dkline[_2_] Excel Programming 0 October 12th 04 09:35 PM
Running Macros in Access from Excel Simon Dowse Excel Programming 1 June 7th 04 03:48 PM


All times are GMT +1. The time now is 05:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"