Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default How to obtain multiple quantities from an Excel VB function?

I have an Excel VB function that performs a rather long computation
(it calls a big Fortran .dll) and I would like to extract more than a
single quantity from each calculation.

In my naive conception of an Excel VB function, one feeds it input
parameters, and it returns a single function value. I've attempted to
output multiple quantities by setting the value of various named
ranges within the function, but this doesn't seem to work. (I suspect
that this sort of thing could seriously undermine Excel's dependency
tree.)

Is there a proper way to have a single function call return more
than one value?

Many thanks,

Tom Kreutz

P.S. My apologies if the query shows up more than once; this is my
third time posting it in two days, and it has yet to appear!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to obtain multiple quantities from an Excel VB function?

Same way as you would do it for built in functions that support it. You
would have the function return an array and you would have to array enter
formula. So if you want to return a table of values (a rectangular area)
this will work.

--
Regards,
Tom Ogilvy



"Tom Kreutz" wrote in message
om...
I have an Excel VB function that performs a rather long computation
(it calls a big Fortran .dll) and I would like to extract more than a
single quantity from each calculation.

In my naive conception of an Excel VB function, one feeds it input
parameters, and it returns a single function value. I've attempted to
output multiple quantities by setting the value of various named
ranges within the function, but this doesn't seem to work. (I suspect
that this sort of thing could seriously undermine Excel's dependency
tree.)

Is there a proper way to have a single function call return more
than one value?

Many thanks,

Tom Kreutz

P.S. My apologies if the query shows up more than once; this is my
third time posting it in two days, and it has yet to appear!



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
Function with unknown quantities? maudeq Excel Worksheet Functions 1 September 22nd 09 03:34 AM
Function with unknown quantities? maudeq Excel Worksheet Functions 1 September 22nd 09 02:10 AM
lookup formulas to obtain multiple results Scott Zane Excel Worksheet Functions 6 July 10th 06 04:28 AM
How to obtain Averages from a list of multiple items? MadameJunk Excel Discussion (Misc queries) 5 October 7th 05 10:46 PM
How do I obtain the address of a cell using the vlookup function? Spock Excel Worksheet Functions 2 May 16th 05 06:35 PM


All times are GMT +1. The time now is 01:25 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"