Hi,
Being Friday, by brain has ground to a halt (again).
What I want to do is hide sheet3 if it is visable or do nothing if it is hidden on each workbook close.
I thought of using a flag like if visable then 1 else 0
If 1 then show else hide etc..
Any ideas?
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Sheets("Sheet3").Select
ActiveWindow.SelectedSheets.Visible = False
End Sub
Thanks
Matt
Being Friday, by brain has ground to a halt (again).
What I want to do is hide sheet3 if it is visable or do nothing if it is hidden on each workbook close.
I thought of using a flag like if visable then 1 else 0
If 1 then show else hide etc..
Any ideas?
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Sheets("Sheet3").Select
ActiveWindow.SelectedSheets.Visible = False
End Sub
Thanks
Matt