Hello,
I have what is probably a simple question - I have this code I grabbed from elsewhere, I want it to only run in column A on all sheets (rather than on all columns as it does now):
Any assistance on this one? Thank you in advance!
I have what is probably a simple question - I have this code I grabbed from elsewhere, I want it to only run in column A on all sheets (rather than on all columns as it does now):
Code:
Sub DeleteRows() Dim WS As Worksheet
On Error Resume Next
For Each WS In Sheets
With WS.UsedRange
.Replace "*Remove*", "#N/A", xlWhole, , False
Intersect(.Cells, .SpecialCells(xlConstants, xlErrors).EntireRow).Delete
End With
Next
End Sub
Any assistance on this one? Thank you in advance!