Sub insert4()
dim lastrow as long, i as long
lastrow = cells(rows.count,1).End(xlup)
for i = lastrow to 1 step - 1
if cells(i,1).Value = "certain text" then
cells(i,1).offset(1,0).resize(4).Entirerow.Insert
end if
Next
For i = R To 1 Step -1
If UCase(Cells(i, 1).Value) = "CERTAIN TEXT" Then
If Application.CountA(Cells(i + 1, 1).Resize(4)) > 0 Then
Cells(i + 1, 1).Resize(4).EntireRow.Insert
End If
End If
Next
Sub insert4()
dim lastrow as long, i as long
lastrow = cells(rows.count,"G").End(xlup)
for i = lastrow to 1 step - 1
if right(lcase(cells(i,"G").Value),3) = lcase("abc") then
cells(i,1).offset(1,0).resize(4).Entirerow.Insert
end if
Next