On 2002-10-22 00:02, Dragracer wrote:
Hi Sam
The line your looking for is
CELL.EntireColumn.Hidden = True
On 2002-10-21 23:30, SamS wrote:
I feel a little lost here and should know this but I can't seem to be able to work out how to hide this column in the routine below.
Dim CELL As Range
For Each CELL In Range("O1:AA1")
If CELL.Value = 0 Then
(Hide this column)
End If
Next
...
Dim CELL As Range
For Each CELL In Range("O1:AA1")
If CELL.Value = 0 Then
Cells(1, CELL.Column).Select
Selection.EntireColumn.Hidden = True
' (Hide this column)
End If
Next
...