Public Sub Test()
Dim iCount As Integer
Dim iHidden As Integer
For iCount = 1 To ActiveSheet.Columns.Count
If ActiveSheet.Columns(iCount).Hidden = True Then iHidden = iHidden + 1
Next iCount
MsgBox "There are " & iHidden & " hidden columns in the active worksheet"
End Sub