Old chestnut about ensuring macro's are enabled on open. I have a warning sheet that I would like displayed if macro's are disabled which says "please re open with Macro's enabled" My code is below but i get an error on the BeforeClose and i can't see why?
Any help much appreciated
Regards
Adrian
Private Sub Workbook_BeforeClose(Cancel As Boolean)
For Each Sh In Sheets
Sh.Visible = False
Next Sh
Sheets("Warning").Visible = True
End Sub
####################################
Private Sub Workbook_Open()
For Each Sh In Sheets
Sh.Visible = True
Next Sh
Sheets("Warning").Visible = False
End Sub
Bookmarks