Hi I have a problem when I try to insert one row under a selected one, here the code I'm using:
For i = 1 To 150
For k = 3 To 20
If Cells(i, 6).value = Cells(k, 19).value Then
Cells(i, 6).EntireRow.Select
Selection.Insert Shift:=xlDown
End If
Next k
Next i
I check if the value of Cells(I, 6) is equal of the value of the Cells(k, 19) and in that case I have to add one row under Cells(I, 6); the problem is that it works but it adds 20 rows instead of one, how can I fix?