Forum Discussion
Thomas Bryant
Oct 27, 2017Copper Contributor
Autohide
Im trying to make columns autohide if row 1 = 0. Any ideas?
1 Reply
- Hi Thomas,
I believe you can not do that unless you use Macro, or VBA.
this code will help:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Range("A1").Value = 0 Then
Columns("A").EntireColumn.Hidden = True
Else
Columns("A").EntireColumn.Hidden = False
End If
End Sub