Hi All, I have this code that Peter_SSs kindly provided that works perfectly.
I would like to expand this code to run over each column if row 1 in that column has something in it.
So once it has run over column A move on to column B etc until there is nothing in row 1 of whatever column that may be.
Have tried to get this to work via a loop but no bueno, here is the code that works on column A
Any assistance would be much appreciated
I would like to expand this code to run over each column if row 1 in that column has something in it.
So once it has run over column A move on to column B etc until there is nothing in row 1 of whatever column that may be.
Have tried to get this to work via a loop but no bueno, here is the code that works on column A
Any assistance would be much appreciated
VBA Code:
Sub Remove_Based_on_Right9()
Sheets("Sheet1").Select
With Range("A2", Range("A" & Rows.Count).End(xlUp))
.Value = Evaluate(Replace("if(isnumber(match(""*""&left(right(#,9),1)&""*"",A1,0)),#,0)", "#", .Address))
On Error Resume Next
.SpecialCells(xlConstants, xlNumbers).Delete Shift:=xlUp
On Error GoTo 0
End With
End Sub