'http://www.mrexcel.com/forum/newreply.php?do=newreply&noquote=1&p=2809395
Sub Macro1()
Dim sWord As String
sWord = "CLEARED"
Application.ScreenUpdating = False
For Each Worksheet In ThisWorkbook.Sheets
Select Case Worksheet.Name
Case Is = "Citi"
With Sheets("Citi").Range("U5", Range("U" & Rows.Count).End(xlUp))
.Replace "", "z"
.Replace sWord, "#N/A", xlWhole 'Based on Rick Rothstein's very clever Delete Row With Specific Word from here: http://www.contextures.com/rickrothsteinexcelvbatext.html
On Error Resume Next ' Account for no cells being found.
.SpecialCells(xlCellTypeConstants, xlErrors).EntireRow.Delete
On Error GoTo 0
.Replace "z", ""
End With
Case Is = "JPM"
With Sheets("JPM").Range("S5", Range("S" & Rows.Count).End(xlUp))
.Replace "", "z"
.Replace sWord, "#N/A", xlWhole 'Based on Rick Rothstein's very clever Delete Row With Specific Word from here: http://www.contextures.com/rickrothsteinexcelvbatext.html
On Error Resume Next ' Account for no cells being found.
.SpecialCells(xlCellTypeConstants, xlErrors).EntireRow.Delete
On Error GoTo 0
.Replace "z", ""
End With
Case Is = "BONY"
With Sheets("BONY").Range("R5", Range("R" & Rows.Count).End(xlUp))
.Replace "", "z"
.Replace sWord, "#N/A", xlWhole 'Based on Rick Rothstein's very clever Delete Row With Specific Word from here: http://www.contextures.com/rickrothsteinexcelvbatext.html
On Error Resume Next ' Account for no cells being found.
.SpecialCells(xlCellTypeConstants, xlErrors).EntireRow.Delete
On Error GoTo 0
.Replace "z", ""
End With
End Select
Next Worksheet
Application.ScreenUpdating = True
End Sub