NigelTufnel
Board Regular
- Joined
- Apr 3, 2008
- Messages
- 53
- Office Version
- 365
- Platform
- Windows
Suppose I have a range consisting of not-necessarily contiguous cells in the same columnn, e.g.,
Set rMyRange = Range("$A$1:$A$3, $A$8, $A$10")
How do I directly access the Nth cell in the range?
For example, I tried rMyRange.cells(4).address...but I get $A$4 instead of $A$8, which is what I want.
I was able to pick off the fourth item using a For loop (e.g.,
For each rMyCell in rMyRange
But this is tedious. Is there a way to directly read the fourth cell?
Set rMyRange = Range("$A$1:$A$3, $A$8, $A$10")
How do I directly access the Nth cell in the range?
For example, I tried rMyRange.cells(4).address...but I get $A$4 instead of $A$8, which is what I want.
I was able to pick off the fourth item using a For loop (e.g.,
For each rMyCell in rMyRange
But this is tedious. Is there a way to directly read the fourth cell?