S
Serge
Lets say I have
dim xlRng1 as excel.range
And I would like to set xlRng1 to two separate blocks of data from A1:A5 and
F1:F5
So I tried doing it like this:
set xlRng1 = Range("A1:A5, F1:F5")
so then xlRng1(1,1) should equal to value of A1
but why doesn't xlRng1(1,2) equal to value of F1, but instead it keeps
giving me value of B1 and how do I fix it?
i.e. I would like xlRng1 to consist of two columns A and F, not A through F
Thanks!
Serge
dim xlRng1 as excel.range
And I would like to set xlRng1 to two separate blocks of data from A1:A5 and
F1:F5
So I tried doing it like this:
set xlRng1 = Range("A1:A5, F1:F5")
so then xlRng1(1,1) should equal to value of A1
but why doesn't xlRng1(1,2) equal to value of F1, but instead it keeps
giving me value of B1 and how do I fix it?
i.e. I would like xlRng1 to consist of two columns A and F, not A through F
Thanks!
Serge