I am trying to unhide all the columns with this line of code
Code: Select all
ws.Columns.Hidden = False
How can I hide all the columns in the worksheet without throwing errors?
I tried such line and works fine
Code: Select all
.Cells(1, 10).Resize(, .Columns.Count - 9).EntireColumn.Hidden = True