![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Location: John Wiley
Posts: 15
|
How do you call a function in another workbook and get back its result. TO call a sub you can use applicationl.run "xlsfile!modname", what the syntax for calling a function?
Thanks, David Fein |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
Application.Run "Myfile!myfilefunc", "A1:A10" Just specify the paramters its expecting in this case a range. |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Location: John Wiley
Posts: 15
|
That calls the function and passes the param, but how do you get the result back?
|
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
eg MyValue = ...... |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|