I don't have XL97, but I am willing to bet its macro language is
significantly different from the XL2003 that I am using.... obviously since
the code I posted works fine on my system. Hopefully someone knowledgeable
about XL97 will come by to answer your question. For future reference,
always mention the version of XL you are using when asking questions in the
Excel newsgroups.
Rick
"CLR" wrote in message
...
Thanks Rick, I'm able to step through the sheets ok, just having trouble
with
the "check for visibility test"
I replaced my
If ActiveSheet.Visible = False Then
with your
If Not WS.Visible Then
but that seems to act the same
I'm using XL97 if that makes a diff.......
Vaya con Dios,
Chuck, CABGx3
"Rick Rothstein (MVP - VB)" wrote:
See if this code snippet helps you...
Dim WS As Worksheet
For Each WS In Worksheets
If Not WS.Visible Then
Debug.Print WS.Name & " is hidden."
End If
Next
Rick
Am trying to step through sheets, and if one is hidden, so indicate....
This line don't seem to work
If ActiveSheet.Visible = False Then
"DoThis"
Else
"DoThat"
Endif
Any suggestions please?
Vaya con Dios,
Chuck, CABGx3