Hide Tabs Based on the Choice of Multiple Items from Drop Down List

knopp

New Member
Joined
Oct 21, 2021
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hello, I have a question regarding how to hide multiple sheets based on a user's selection from a drop down list. My spreadsheet has around 60 tabs (the sample only shows 30) and only 15-30 of these will be in use for a project. I would like the user to be able to use the drop down list to select which tabs they would like for the project and hide the rest.


I have attached an image of my attempt at solving this problem in VBA, however the code does not allow for multiple selections and is not hiding the correct sheets. I also attached images of the drop-down list and range it is pulling from.


Does anyone know the solution to this issue? I have tried a lot of things but have not been successful. Any help would be much appreciated!
1634837423238.png
1634837547629.png

1634837615793.png
 

Attachments

  • 1634837569928.png
    1634837569928.png
    47.1 KB · Views: 46
What is the solution? As I too want to create a drop down list where the user can select desired sheets to complete and hide all unslected sheets.
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,224,820
Messages
6,181,161
Members
453,021
Latest member
Justyna P

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