Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'd like to write a function which accepts a list and
executes a for loop with operations on each element in the list. I can't figure out how to get the size of the list. For example, my call in an excel cell would be =myfun(A1:A10) and the VBA code is Public Function myfun(data) Dim idx As Integer size = ??? For idx = 1 To size ... data(idx) ... Next idx How do I get the size of data (10 in this example)? It would be nice if it worked for both horizontal and vertical arrays, but I'll take either. Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
user defined function | Excel Worksheet Functions | |||
How do I set the User Defined paper size in Excel? | Excel Discussion (Misc queries) | |||
User defined charts- font size too small | Charts and Charting in Excel | |||
How do I convert a user defined selection into an array? | Excel Programming | |||
Passing an Array of User-Defined Type to an Argument of a Function | Excel Programming |