Hide and unhide tabs using drop-down menu in excel

Hans_Germany

New Member
Joined
Nov 29, 2019
Messages
2
Office Version
  1. 2010
Platform
  1. MacOS
Hi all,

I attached the original worksheet where some tabs should be visible all the time, and some of the tabs "results" and "icer" should only be visible depending on the selection in the drop-down list on the "efficacy inputs" sheet.

The drop-down list contains 4 items (Scenario 1, Scenario 2, Scenario 3, Scenario 4).

Following sheets should be visible all the time:

Cover
Instructions
Efficacy inputs
Utility & cost input
Therapy cost inputs
Calculator Fosta
Calculator BSC
B.3.2
B.3.4
B.3.6
B.3.7
Appenix J
QALY
costs
resource use
1-way sensitivity

Depending on the drop-down list in cell B2 on the "efficacy inputs" sheet, certain tabs of "Results" and "ICER" should be hidden:

When "Scenario 1" is selected, only the tabs "Results 1" and "ICER 1" should be visible and the other tabs (Results 2, Results 3, Results 4, ICER 2, ICER 3, ICER 4) should be hidden.
When "Scenario 2" is selected, only the tabs "Results 2" and "ICER 2" should be visible and the other tabs (Results 1, Results 3, Results 4, ICER 1, ICER 3, ICER 4) should be hidden.
When "Scenario 3" is selected, only the tabs "Results 3" and "ICER 3" should be visible and the other tabs (Results 1, Results 2, Results 4, ICER 1, ICER 2, ICER 4) should be hidden.
When "Scenario 4" is selected, only the tabs "Results 4" and "ICER 4" should be visible and the other tabs (Results 1, Results 2, Results 3, ICER 1, ICER 2, ICER 3) should be hidden.

Does anybody know what the appropriate code for that is?

Thanks a lot in advance for your help. I highly appreciate it.
 

Attachments

  • Bildschirmfoto 2019-11-29 um 14.07.34.png
    Bildschirmfoto 2019-11-29 um 14.07.34.png
    77.6 KB · Views: 12

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,215,327
Messages
6,124,281
Members
449,149
Latest member
mwdbActuary

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
Back
Top