Locating the third item in a Range
Hi,
you don't need a loop.
try something like this:
Dim myRange As Range
Set myRange = Range("rng")
MsgBox myRange(3).Value
where rng is the named range on the worksheet.
HTH
Philip
"Jakobshavn Isbrae" wrote:
I am trying to get to a certain place in a range, for example the 3rd item.
If the range consists of three cells A1, A10, A20 and I use
Number = 3
s = Selection(Number).Address
v = Selection(Number).Value
then I get to cell A3 (third from the start) instead of A20 (which is what I
want)
Can I get to a certain place without using a loop?
Thanks in advance
--
jake
|