Hi
I have a range which is several rows but 1 column
i.e rng = (.cells(x,1),cells(z,1))
I have an array
Dim myarray() as variant
Myarray = rng
When z>x i.e the range contains more than 1 value, it is fine
When z=x i.e the range contains only 1 value, it returns an error.
if range value is 8888 only, it returns error
if range value is 8888,9999,7777 it is ok
if range value is 8888, <empty space> it is ok (as empty space is considered as a value)
is there any reason the array has to take more than 1 value ? Any workaround for that?
Thanks
I have a range which is several rows but 1 column
i.e rng = (.cells(x,1),cells(z,1))
I have an array
Dim myarray() as variant
Myarray = rng
When z>x i.e the range contains more than 1 value, it is fine
When z=x i.e the range contains only 1 value, it returns an error.
if range value is 8888 only, it returns error
if range value is 8888,9999,7777 it is ok
if range value is 8888, <empty space> it is ok (as empty space is considered as a value)
is there any reason the array has to take more than 1 value ? Any workaround for that?
Thanks