Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm searching up a column looking for a particular value.
When found, I need to add a range offset from that cell to an array. I find that the following code is overwriting varr(1) each time....so the array never builds correctly i = i + 1 If IsEmpty(varr(1)) Then Set varr(1) = .Range("B" & StartRw) Else ReDim Preserve varr(1 To UBound(varr) + 1) Set varr(UBound(varr)) = .Range("B" & StartRw) End If Why is the array not building correctly, please? Regards |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Array Question | Excel Discussion (Misc queries) | |||
array question | Excel Worksheet Functions | |||
Array Question | Excel Discussion (Misc queries) | |||
Increment array for debits and credits | Excel Programming | |||
Increment array range | Excel Programming |