3
39N 95W
Excel 2002
Windows XP Pro SP2
I have an array that is filled with range objects. The range extents are
rows of data, from A to M and from many different row numbers. How do I
access a particular cell value within a range object? For instance:
i = 0
For Each cell in myRange.Cells
If cell.Offset(0, 2).Value <> cell.Offset(0,5 ).Value Then
i = i + 1
Set NewRng(i) = Range(cell, cell.Offset(0, 12))
End If
Next cell
'Now loop through NewRng and evaluate the cell value in the 4th column of
NewRng
For i = 1 to TotRngs
Msgbox NewRng(i).????.Address 'what should I put in place of ????
Next i
Any and all help appreciated.
-gk-
========================================================================
"The creative act is not the province of remote oracles or rarefied
geniuses but a transparent process that is open to everyone."
-Greg Kot in Wilco Learning How To Die-
Windows XP Pro SP2
I have an array that is filled with range objects. The range extents are
rows of data, from A to M and from many different row numbers. How do I
access a particular cell value within a range object? For instance:
i = 0
For Each cell in myRange.Cells
If cell.Offset(0, 2).Value <> cell.Offset(0,5 ).Value Then
i = i + 1
Set NewRng(i) = Range(cell, cell.Offset(0, 12))
End If
Next cell
'Now loop through NewRng and evaluate the cell value in the 4th column of
NewRng
For i = 1 to TotRngs
Msgbox NewRng(i).????.Address 'what should I put in place of ????
Next i
Any and all help appreciated.
-gk-
========================================================================
"The creative act is not the province of remote oracles or rarefied
geniuses but a transparent process that is open to everyone."
-Greg Kot in Wilco Learning How To Die-