Sub Update_Tabs()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
For Each r In ws.Range("B1:L1")
If r.Value = "No" Then
r.EntireColumn.Hidden = True
Else
r.EntireColumn.Hidden = False
End If
Next ws
End Sub
I am just trying to hide any column that says No in it's first cell on each sheet. I got it to work on just one sheet, but I am messing something up when I tried to add in the apply to all tabs part.
Anybody know what I'm doing wrong?
Thanks in advance
Bookmarks