Wicked Mongoose
06-05-2008, 10:34 AM
I am having similar troubles, I want to loop through a range and find discrepencies between two sets of lists.
however I can't get the looping to work.
here is what I have.
Dim i
With ActiveSheet
For i = 1 To 200
If .Range(.Cells(i, 3), .Cells(i, 4)) <> .Range(.Cells(i, 1), .Cells(i, 2)) Then
.Range(.Cells(i, 3), .Cells(i, 4)).Insert Shift:=xlDown
End If
Next i
End With
however I can't get the looping to work.
here is what I have.
Dim i
With ActiveSheet
For i = 1 To 200
If .Range(.Cells(i, 3), .Cells(i, 4)) <> .Range(.Cells(i, 1), .Cells(i, 2)) Then
.Range(.Cells(i, 3), .Cells(i, 4)).Insert Shift:=xlDown
End If
Next i
End With