Given that people are using v2007 now, it would be better not to hard code
the row count:
Private Sub CommandButton1_Click()
Dim i As Long
With ActiveSheet.Columns
For i = 1 To .Count
If .Item(i).EntireColumn.Hidden = True Then
MsgBox "column " & i & " is hidden"
End If
Next
End With
End Sub
NickHK
"Gary''s Student" <(E-Mail Removed)> wrote in message
news:EA163D1A-0F72-4A45-849B-(E-Mail Removed)...
> Sub geoff()
> For i = 1 To 256
> If Columns(i).EntireColumn.Hidden = True Then
> MsgBox ("column " & i & " is hidden")
> End If
> Next
> End Sub
> --
> Gary''s Student
> gsnu200711
>
|