M
Mike R.
Hi - I am a little stuck here. I am sure it is something easy.
Sub testing()
Dim irows As Integer
Dim iloop
Dim iloop2
irows = ActiveSheet.UsedRange.Rows.Count
For iloop = irows To 2 Step -1
If Cells(iloop, 8) <> "" Then _
For iloop2 = irows To 2 Step -1
If Cells(iloop2, 11) = Cells(iloop, 8) Then _
Cells(iloop2, 5).Value = Cells(iloop, 5).Value
Cells(iloop, 1).EntireRow.Delete
Next iloop2
Next iloop
End Sub
I am getting the 'End if without Block if' error. Help please.
Thank you,
Sub testing()
Dim irows As Integer
Dim iloop
Dim iloop2
irows = ActiveSheet.UsedRange.Rows.Count
For iloop = irows To 2 Step -1
If Cells(iloop, 8) <> "" Then _
For iloop2 = irows To 2 Step -1
If Cells(iloop2, 11) = Cells(iloop, 8) Then _
Cells(iloop2, 5).Value = Cells(iloop, 5).Value
Cells(iloop, 1).EntireRow.Delete
Next iloop2
Next iloop
End Sub
I am getting the 'End if without Block if' error. Help please.
Thank you,