Dear All,
I am attempting to program a macro that will automatically hide column "G" when cell F9 is "FALSE." I wrote the code below, but it does not work. Do you have any suggestions?
I am attempting to program a macro that will automatically hide column "G" when cell F9 is "FALSE." I wrote the code below, but it does not work. Do you have any suggestions?
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$F$9" Then
Columns("G").EntireColumn.Hidden = (Target.Value = "FALSE")
End If
End Sub