Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array
I want to pass an unknown number of dates and values to be processed by a
function. The data is like this:- 28/01/1956 12500 31/12/1980 45680 04/04/2002 1200000 What is the most effective way of doing it please? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Array
You can use ParamArray, like so
Function func1(ParamArray inp()) Dim i As Long For i = LBound(inp) To UBound(inp) MsgBox inp(i) Next i End Function -- HTH RP (remove nothere from the email address if mailing direct) "Adam" wrote in message ... I want to pass an unknown number of dates and values to be processed by a function. The data is like this:- 28/01/1956 12500 31/12/1980 45680 04/04/2002 1200000 What is the most effective way of doing it please? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Complex conditional summing - array COUNT works, array SUM gives#VALUE | Excel Worksheet Functions | |||
Prevent cell/array references from changing when altering/moving thecell/array | Excel Discussion (Misc queries) | |||
meaning of : IF(Switch; Average(array A, array B); array A) | Excel Worksheet Functions | |||
Array problem: Key words-Variant Array, single-element, type mismatch error | Excel Programming | |||
Array problem: Key words-Variant Array, single-element, type mismatch error | Excel Programming |