Thread
:
Macro for Show/Hide Column
View Single Post
#
2
Andy
Posts: n/a
hi don, i used this for another column requirement....thanks
"Don Guillett" wrote:
or
Sub togglehide()
columns("d").Entirecolumn.Hidden = True = Not _
columns("d").Entirecolumn.Hidden = True
End Sub
--
Don Guillett
SalesAid Software
"tjtjjtjt" wrote in message
...
Here's a basic macro that will do it:
Sub HideColD()
Columns("D:D").Select
If Selection.EntireColumn.Hidden = False Then
Selection.EntireColumn.Hidden = True
Else
Selection.EntireColumn.Hidden = False
End If
Range("D1").Select
End Sub
tj
"Andy" wrote:
Hi
I am trying to write a Macro to Toggle Show/Hide column D
Anybody able to help?
with thanks...Andy
Reply With Quote