VBA to Hide sheets based on their own cell value.

deletedalien

Well-known Member
Joined
Dec 8, 2008
Messages
505
Office Version
  1. 2013
Platform
  1. Windows
Good morning all,

i searched the forum and found similar results to what i need but not quite meet the criteria for my specific issue and i am hoping that you guys can help me with your knowledge.

so what i have is a series of reports that i update every morning and they all need to have data updated on them, to do this i unhide certain sheets (tabs) then update the data ---- and then re-hide the necessary tabs...

so the first part of this i completely have covered no problems there...
my issue is that some of these reports have 2 or 3 sheet tabs that need to be hidden,
some of these reports have 1 or 2 sheets that need to remain un-hidden,

and the sheets that need to be hidden don't necessarily have the same name,
so the VBA might have to loop trough the sheets in the workbook to find the sheets that need to be hidden.

Also this VBA will be added to an existing one (if possible) that i have in my "personal workbook".

Any help will be greatly appreciated.

Thanx again.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK


sorry i tried but didn't quite understood the data validation part.
Also i noticed you're using "ActiveWorkbook.Sheets("Name").

Since the sheetnames will not be the same than this can't be defined,
Also can,t use Activesheet because the code should look at all sheets instead of switching between sheets and then evaluating.

i may be wrong tho...
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,164
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