I have a macro that currently only runs on one sheet. I have about 50 sheets that I need this to run through in the same workbook. Any ideas on how to make it run all sheets?
This is the macro:
Sub Delete_Columns1()
Dim rng As Range, cell As Range, del As Range
Set rng = Intersect(Range("C4:AW4”), ActiveSheet.UsedRange)
For Each cell In rng
If (cell.Value) = "BENCHMARK" _
Then
If del Is Nothing Then
Set del = cell
Else: Set del = Union(del, cell)
End If
End If
Next cell
On Error Resume Next
del.EntireCOLUMN.Delete
End Sub
As always, thanks for all your help!
Bookmarks