Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
How do I get a function to return an array. [I know that it should be
doable since the various matrix functions return an array.] To be more precise I need to do this within a macro. I know how to do it at the spreadsheet level. I am running Excel 2004 on a MAC [OSX] Thanks Brujolito |
#2
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
One way:
Public Function foo() As Variant foo = Array(1,2,3,4,5) End Function You can then array-enter the function into, say A1:E1, =foo() to get the values 1-5 into those cells, or use =SUM(foo()) === 15 You can obviously get much more complicated... In article om, " wrote: How do I get a function to return an array. [I know that it should be doable since the various matrix functions return an array.] To be more precise I need to do this within a macro. I know how to do it at the spreadsheet level. I am running Excel 2004 on a MAC [OSX] Thanks Brujolito |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
index match array function-returning only first match, need last. | Excel Worksheet Functions | |||
Returning an array from the INDEX function | Excel Worksheet Functions | |||
What is this function called?? | Excel Discussion (Misc queries) | |||
Function, dont know what its called | Excel Worksheet Functions | |||
Macro with Array Function Problems | Excel Worksheet Functions |