Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 85
Default HELP: How to call UDF defined in another workbook?

What is the syntax and/or requirements for calling a user-define
function defined in another workbook that is already open in the
current instance of Excel?

(That is, both workbooks are open in the same instance of Excel.)

Details....

I have Module1 in the workbook timeit.xls. A function therein
(myfunc) needs to call another function (foobar), which is declared in
Module1 in the workbook binary.xls. If I were calling "foobar" from
an Excel worksheet in timeit.xls, the syntax that works is:

binary.xls!foobar("arguments")

That syntax does not work in VBA.

My book simply says to click on ToolsReferences. I don't know what
to do after that.

If I browse the file system and double-click the xls file, I get an
error ("name conflicts with existing module").

If I close the workbook binary.xls, then repeat the ToolsReferences
procedure above, binary.xls is opened (added to the Project Explorer
list), but I still get the error "name conflicts with existing module".
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 85
Default HELP: How to call UDF defined in another workbook?

On Dec 9, 11:57 am, wrote:
What is the syntax and/or requirements for calling a user-define
function defined in another workbook that is already open in the
current instance of Excel?


Never mind! Dave Peterson already providing instructions to do this
in another thread. I will try those instructions first.
Reply
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
Call user defined function in an add-in Dale Fye Excel Programming 2 December 15th 06 05:04 PM
How to call a function of an user defined DLL from Excel? Davide[_2_] Excel Programming 3 May 9th 06 02:50 PM
How map types when call functions defined in XLL AddIn from VBA Ravil Excel Programming 1 March 23rd 06 10:49 PM
How to call a sub defined in macro when double click a cell? Ivan Excel Programming 3 November 20th 05 09:46 PM
Call GoalSeek from a user-defined-function Mark Excel Programming 1 August 23rd 05 01:50 PM


All times are GMT +1. The time now is 12:00 PM.

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

About Us

"It's about Microsoft Excel"