T
Tom Kreutz
I'm trying to write a function that will return multiple calculated
values. One way is to use the Array() function, which creates a
variant array, such as:
Function test()
Dim y As Variant
y = Array("a", "b")
test = y
End Function
However, I want to be able to output two CALCULATED values for y(1)
and y(2). If I try to do this in the code above, e.g. if ... then
y(1)=26, I get an error.
Am I missing somthing obvious?
Thanks in advance for any good ideas.
Tom Kreutz
values. One way is to use the Array() function, which creates a
variant array, such as:
Function test()
Dim y As Variant
y = Array("a", "b")
test = y
End Function
However, I want to be able to output two CALCULATED values for y(1)
and y(2). If I try to do this in the code above, e.g. if ... then
y(1)=26, I get an error.
Am I missing somthing obvious?
Thanks in advance for any good ideas.
Tom Kreutz