Hiding Worksheets
Posted by Bill on June 28, 2001 1:37 PM
Greetings
Can anyone help me with some code to hide all the worksheets in a workbook. I've tried this:
Private Sub Workbook_Open()
For Each sh In Sheets
sh.Visible = False
Next sh
End Sub
But of course it errors at the last sheet, I guess because there's nothing left for the For Next loop to count.
Grateful for any advice.
Bill C