S
Sean
I have the following code that, on close, it hides all the Sheets
except Splash. Problem is I'm getting a debug on -
ws.Visible = xlVeryHidden
It says - Unable to set the visible property of the worksheet class
I've all sheets protected and running 2003
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim sh As Worksheet
For Each ws In Worksheets
If ws.Name = "Splash" Then
ws.Visible = True
Else
ws.Visible = xlVeryHidden
End If
Next
End Sub
except Splash. Problem is I'm getting a debug on -
ws.Visible = xlVeryHidden
It says - Unable to set the visible property of the worksheet class
I've all sheets protected and running 2003
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim sh As Worksheet
For Each ws In Worksheets
If ws.Name = "Splash" Then
ws.Visible = True
Else
ws.Visible = xlVeryHidden
End If
Next
End Sub