Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub b()
With Range([a1], [a1].End(xlDown))
For r = .Row To .Row + .Rows.Count - 1
With Cells(r, "A")
If UCase(.Value) = "C" Then
r = r + 1
Cells(r, "A").EntireRow.Insert shift:=xlDown
End If
End With
Next
End With
End Sub
Sub b()
With Range([a1], [a1].End(xlDown))
For r = .Row To .Row + .Rows.Count - 1
With Cells(r, "A")
If UCase(.Value) = "C" Then
Cells(r, "A").EntireRow.Insert shift:=xlDown
r = r + 1
End If
End With
Next
End With
End Sub
Sub b()
With Range([a1], [a1].End(xlDown))
r = .Row
r1 = .Row + .Rows.Count - 1
Do While r <= r1
With Cells(r, "A")
If UCase(.Value) = "C" Then
Cells(r, "A").EntireRow.Insert shift:=xlDown
Cells(r, "A").Value = "BB"
r1 = r1 + 1
r = r + 1
End If
r = r + 1
End With
Loop
End With
End Sub