Hide sheets (not by format - sheet - hide)

Jonasmj

New Member
Joined
Sep 23, 2002
Messages
38
I have created a menu with a large number of buttons on sheet 1 in a workbook, a menu sheet. These buttons are linked to different macros and when clicked they take you to antoher sheet in the same workbook. Antoher obvoius way to get to these other sheets is off course to click on the sheet directly (at the bottom of the excel window)

Is there a way of removing the normal way of changeing sheet, ie hide the sheets? If I do a format - sheet - hide (that removes the sheet from the list at the bottom) and then click the button for that very sheet I naturally a get an error.

My thougt is some vb-code that un-hides sheets when they are called upon by the button-macro, and re-hides them as soon as the user returns to the menu-sheet. Possible?

If so, could someone please give me a start on how that code should look? Please.

/ Jonas
 

Some videos you may like

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Jonasmj

New Member
Joined
Sep 23, 2002
Messages
38
Wow, how simple things can be :wink:
Only problem is that when having ALOT of sheets it means I have alot of buttons and therefore alot of macros. These macros was alreday made by someone and now I have to add the code for un-hiding the sheets to every macro. I guess I could us some a VB-editor that could do this easily by a search-replace-function.

Thanks for the quick reply!

/ Jonas
 

Watch MrExcel Video

Forum statistics

Threads
1,122,216
Messages
5,594,886
Members
413,947
Latest member
gizmolucy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top