Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Vlookup function returns duplicate values | Excel Discussion (Misc queries) | |||
Array function that returns values within several intervals | Excel Worksheet Functions | |||
Worksheet Function to Create Array of Size n with values x Through | Excel Discussion (Misc queries) | |||
Create If statement that returns a tick when true | Excel Discussion (Misc queries) | |||
How do I create a Graph using function/formula to get the values? | Excel Discussion (Misc queries) |