scottcolbury
New Member
- Joined
- Dec 6, 2005
- Messages
- 45
Not sure if this is possible.
I want to evaluate an array, actually a defined section of an array with a worksheet function. I know how to do this with a worksheet range like this...
but what I need to do is something like this...
...where all my data is stored in the array and I pass in what range of data to calculate on. Also if there is a way to do this on a section of a collection that would be great to know!
thanks in advance
s_c
I want to evaluate an array, actually a defined section of an array with a worksheet function. I know how to do this with a worksheet range like this...
Code:
x = Evaluate("Worksheet.Function.Sum(.Range(" & .Cells(1, 2).Address & ":" & .Cells(2, 2).Address & "))")
but what I need to do is something like this...
Code:
x = Evaluate("Worksheet.Function.Sum(" & array(1, 2) & ":" & array(2, 2)& ")")
...where all my data is stored in the array and I pass in what range of data to calculate on. Also if there is a way to do this on a section of a collection that would be great to know!
thanks in advance
s_c