Advertisement

11.11.2007 at 12:17PM PST, ID: 22953291
[x]
Attachment Details

Hide / Unhide sheets

Asked by macsek in Microsoft Excel Spreadsheet Software

Tags: unhide, sheet

I want hide/unhide sheets.
In the Private Sub Workbook_Open() procedure the Unhide menu command is disabled:
    For Each Ctrl In Application.CommandBars.FindControls(ID:=891)
        Ctrl.Enabled = False
    Next Ctrl
I restore it:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
    MenuBars(xlWorksheet).Reset

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
[+][-]11.11.2007 at 03:22PM PST, ID: 20261160

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.11.2007 at 09:31PM PST, ID: 20262276

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: unhide, sheet
Sign Up Now!
Solution Provided By: bkenny_ie
Participating Experts: 2
Solution Grade: A
 
 
[+][-]11.12.2007 at 09:17AM PST, ID: 20265526

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628