Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Create VBA function that returns many values

A function can only return values to the cell(s) from which it was called.
If the function is entered into an array of cells, it can return an array to
those cells. See http://www.cpearson.com/Excel/Return...ysFromVBA.aspx
for details and example code.


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2008
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


"gkk-vba" wrote in message
...
I would like to write a VBA function that takes as input real numbers and
returns more than one value in distinct cells of the worksheet, whose
location can vary dynamically.Specifically I would like a function which
does domething like this.
Function F(x as Double, y as Double, z as Double)
... some code here
F in one cell of the worksheet
G in another cell etc.
End Function
Any help will be appreciated


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
Vlookup function returns duplicate values Bigbelt Excel Discussion (Misc queries) 5 December 18th 08 02:27 AM
Array function that returns values within several intervals Hjuler Excel Worksheet Functions 6 September 23rd 08 04:11 PM
Worksheet Function to Create Array of Size n with values x Through Dial222 Excel Discussion (Misc queries) 1 December 6th 07 11:21 AM
Create If statement that returns a tick when true [email protected] Excel Discussion (Misc queries) 3 November 7th 07 04:41 PM
How do I create a Graph using function/formula to get the values? DivinePeitho Excel Discussion (Misc queries) 2 August 24th 06 01:57 PM


All times are GMT +1. The time now is 10:37 AM.

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"