Sub Latest_Comments()
Dim UsdRws As Long
Application.ScreenUpdating = False
With ActiveSheet
UsdRws = .Range("E" & Rows.Count).End(xlUp).Row
.Range("A1:V" & UsdRws).AutoFilter 5, "Assigned to Finance"
If .Range("A1:A" & UsdRws).SpecialCells(xlVisible).Count > 1 Then
Range("S1").Select
ActiveCell.Offset(1, 0).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.FormulaR1C1 = "Finance"
End If
End With
With ActiveSheet
UsdRws = .Range("E" & Rows.Count).End(xlUp).Row
.Range("A1:V" & UsdRws).AutoFilter 5, "Bank details required"
If .Range("A1:A" & UsdRws).SpecialCells(xlVisible).Count > 1 Then
Range("S1").Select
ActiveCell.Offset(1, 0).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.FormulaR1C1 = "CC Team"
End If
End With
With ActiveSheet
UsdRws = .Range("E" & Rows.Count).End(xlUp).Row
.Range("A1:V" & UsdRws).AutoFilter 5, "Awaiting documents/payment from customer"
If .Range("A1:A" & UsdRws).SpecialCells(xlVisible).Count > 1 Then
Range("S1").Select
ActiveCell.Offset(1, 0).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.FormulaR1C1 = "CC Team"
End If
End With
With ActiveSheet
UsdRws = .Range("E" & Rows.Count).End(xlUp).Row
.Range("A1:V" & UsdRws).AutoFilter 5, "Visit not Confirmed - Customer Delay"
If .Range("A1:A" & UsdRws).SpecialCells(xlVisible).Count > 1 Then
Range("S1").Select
ActiveCell.Offset(1, 0).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.FormulaR1C1 = "CC Team"
End If
End With
With ActiveSheet
UsdRws = .Range("E" & Rows.Count).End(xlUp).Row
.Range("A1:V" & UsdRws).AutoFilter 5, "Visit failed - Customer unavailable"
If .Range("A1:A" & UsdRws).SpecialCells(xlVisible).Count > 1 Then
Range("S1").Select
ActiveCell.Offset(1, 0).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.FormulaR1C1 = "CC Team"
End If
End With
With ActiveSheet
UsdRws = .Range("E" & Rows.Count).End(xlUp).Row
.Range("A1:V" & UsdRws).AutoFilter 5, "Assigned to Replacement"
If .Range("A1:A" & UsdRws).SpecialCells(xlVisible).Count > 1 Then
Range("S1").Select
ActiveCell.Offset(1, 0).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.FormulaR1C1 = "Replacement"
End If
End With
With ActiveSheet
UsdRws = .Range("E" & Rows.Count).End(xlUp).Row
.Range("A1:V" & UsdRws).AutoFilter 5, "Same/Equi Device Booking Initiated"
If .Range("A1:A" & UsdRws).SpecialCells(xlVisible).Count > 1 Then
Range("S1").Select
ActiveCell.Offset(1, 0).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.FormulaR1C1 = "Replacement"
End If
End With
With ActiveSheet
UsdRws = .Range("E" & Rows.Count).End(xlUp).Row
.Range("A1:V" & UsdRws).AutoFilter 5, "Replacement - Customer Approval Pending"
If .Range("A1:A" & UsdRws).SpecialCells(xlVisible).Count > 1 Then
Range("S1").Select
ActiveCell.Offset(1, 0).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.FormulaR1C1 = "Replacement"
End If
End With
With ActiveSheet
UsdRws = .Range("E" & Rows.Count).End(xlUp).Row
.Range("A1:V" & UsdRws).AutoFilter 5, "Advance Payment Before Repair"
If .Range("A1:A" & UsdRws).SpecialCells(xlVisible).Count > 1 Then
Range("S1").Select
ActiveCell.Offset(1, 0).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.FormulaR1C1 = "Replacement"
End If
End With
With ActiveSheet
UsdRws = .Range("E" & Rows.Count).End(xlUp).Row
.Range("A1:V" & UsdRws).AutoFilter 5, "Reestimate - Pending Approval"
If .Range("A1:A" & UsdRws).SpecialCells(xlVisible).Count > 1 Then
Range("S1").Select
ActiveCell.Offset(1, 0).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.FormulaR1C1 = "Replacement"
End If
End With
With ActiveSheet
UsdRws = .Range("E" & Rows.Count).End(xlUp).Row
.Range("A1:V" & UsdRws).AutoFilter 5, "Pending Approval - Estimate received"
If .Range("A1:A" & UsdRws).SpecialCells(xlVisible).Count > 1 Then
Range("S1").Select
ActiveCell.Offset(1, 0).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.FormulaR1C1 = "Replacement"
End If
End With
Selection.AutoFilter
Application.ScreenUpdating = True
Range("A1").Select
End Sub