Hi
Im using this code
How do I code it so that if Column P is showing, then hide column S and vice versa so if S is showing hide column P. This will be assigned to a toggle button so I switch between what column I want show when suited.
Thanks
Im using this code
VBA Code:
Sub Toggle_Columns()
Dim r As Range
For Each r In ActiveSheet.Range("P1")
If r.EntireColumn.Hidden Then
r.EntireColumn.Hidden = False
Else
r.EntireColumn.Hidden = True
End If
Next r
End Sub
How do I code it so that if Column P is showing, then hide column S and vice versa so if S is showing hide column P. This will be assigned to a toggle button so I switch between what column I want show when suited.
Thanks