First question:
Sub TAMMY32()
Dim Lastrow As Long
Dim I As Long
With Application
.Calculation = xlCalculationManual
.ScreenUpdating = False
End With
Lastrow = 100
I = 11
While I <= Lastrow
If (Len(Cells(I, "A")) <> Len(Replace(Cells(I, "A"), "Type", ""))) Then
Rows(I & ":" & I).Insert shift:=xlDown
Rows(I & ":" & I).Interior.ColorIndex = 16
I = I + 1
End If
I = I + 1
Lastrow = Range("A" & Rows.Count).End(xlUp).row
Wend
With Application
.Calculation = xlCalculationAutomatic
.ScreenUpdating = True
End With
End Sub
Second question:
Sub TAMMY32()
Dim Lastrow As Long
Dim I As Long
With Application
.Calculation = xlCalculationManual
.ScreenUpdating = False
End With
Lastrow = Range("A" & Rows.Count).End(xlUp).Row
I = 11
While I <= Lastrow
If (Len(Cells(I, "A")) <> Len(Replace(Cells(I, "A"), "Type", ""))) Then
Rows(I & ":" & I).Insert shift:=xlDown
Rows(I & ":" & I).Interior.ColorIndex = 16
I = I + 1
End If
I = I + 1
Lastrow = Range("A" & Rows.Count).End(xlUp).row
Wend
With Application
.Calculation = xlCalculationAutomatic
.ScreenUpdating = True
End With
End Sub
Bookmarks