I did search for this and could not find one that I could try to use.
I am try to find a macro that will look at Row 2 and if there is a "N/A" in that column it will hide the column. And of couse a code to unhide as well.
Excel 2010
Public Sub HideNAString()
Dim i As Long
For i = 2 To Cells(2, Columns.Count).End(xlToLeft).Column
Cells(2, i).EntireColumn.Hidden = Cells(2, i).Value = "N/A"
Next i
End Sub
Public Sub HideNAError()
Dim i As Long
For i = 2 To Cells(2, Columns.Count).End(xlToLeft).Column
Cells(2, i).EntireColumn.Hidden = IsError(Cells(2, i).Value)
Next i
End Sub
Public Sub HideNAString()
Thsi one worked. How do I do it to unhide the Column, I am used to the =False or True but not a .hidden
Public Sub UnhideAll()
Cells.EntireColumn.Hidden = False
End Sub