AlphaFrog,
Perfect! Is there anyway to combine the macro for the top half and the macro you created. If I could have one macro for this sheet, that would be great. If thats too much I understand. Thanks for your time.
Sub deleteRowOnCollor()
Dim lLR, lC As Long
Application.ScreenUpdating = False
lLR = Sheets(1).Range("A" & Rows.Count).End(xlUp).Row 'Determine last row
For lC = lLR To 3 Step -1
Sheets(1).Cells(lC, 1).Activate
If ActiveCell.Interior.Color = 15773696 Then 'Used index color.
Rows(lC).Delete Shift:=xlUp 'delete row
End If
Next
Application.ScreenUpdating = True
End Sub
Sub delete_non_reg_sales_orders()
Dim lLR As Long, lC As Long, nrso As Integer
Application.ScreenUpdating = False
With Sheets(1)
lLR = .Range("A" & Rows.Count).End(xlUp).Row 'Determine last row
For lC = lLR To 3 Step -1
If .Range("A" & lC).Value = "Non-Regular Sales Orders" Then nrso = nrso + 1
If nrso = 2 Then Exit For
If UCase(.Range("Q" & lC).Value) = "A" Or UCase(.Range("Q" & lC).Value) = "S" Then
.Rows(lC).Delete Shift:=xlUp 'delete row
End If
Next lC
End With
Application.ScreenUpdating = True
End Sub
Bookmarks