How would I loop through two ranges using an integer, like this:
Dim column1 As Range
Set column1=.Range("A1:A1000")
Dim column2 As Range
Set column2=.Range("B1:B1000")
Dim i As Integer
For i=1 To column1.Height
If column1.Cells(i,1).Value = someValue And column2.Cells(i,1).Value = someValue then
...
End If
Next
Would this approach work? How do I access the cells of the stored ranges? Most questions and answers deal with the looping via For Each
cycle, which is something I'd like to avoid.