I want hide/unhide sheets.
In the Private Sub Workbook_Open() procedure the Unhide menu command is disabled:
For Each Ctrl In Application.CommandBars.Fi
ndControls
(ID:=891)
Ctrl.Enabled = False
Next Ctrl
I restore it:
Private Sub Workbook_BeforeClose(Cance
l As Boolean)
MenuBars(xlWorksheet).Rese
t
but after closing the file the Unhide menu remains false. Would be needed run this more times? If I run the reset macro when the workbook is open, the control will be active. Could somebody help me?
cheers
macsek
Start Free Trial