Working with range
demo't from the immediate window:
ThisRange = Range("A2:N81").Value
? lbound(thisrange,1), ubound(thisrange,1)
1 80
? lbound(thisrange,2), ubound(thisrange,2)
1 14
--
Regards,
Tom Ogilvy
"François" wrote in message
...
Hello
I have some problems dealing with the arrays.
Here the code
ThisRange = Range("A2:N81")
It supposed to be a array of 2 dimensions of type variant
So If I do uBound(ThisRange) I get 80 which seems to be right (80 rows).
But if I asked uBound(ThisRange(1)) which is supposed to give me the
number
of elements coming from the columns I get an error 9 "Subscript out of
range".
What is wrong in my code ?
Thanks
François
|