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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.


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,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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