VBA to Hide/Unhide Sheets based on a sheet name in the active cell.

nitrammada

Board Regular
Joined
Oct 10, 2018
Messages
78
Office Version
  1. 365
Platform
  1. Windows
Hello, does anyone know the code to hide / unhide very hidden sheets based on the name of the sheet that is in the active cell that i select? I have over 200 very hidden sheets, I don't just want to unhide all of them. I can generate a list of all the very hidden sheets but there are only 1 or 2 that I want to unhide and work on. When I'm finished I want to make the sheet very hidden again. From the list I have generated I would like to select the name of the very hidden sheet that I want to work on, then run a macro to make it visible. Similarly to do the same to make it very hidden again. Any thoughts would be greatly appreciated.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Cell Formulas
RangeFormula
Q4:Q21Q4=REPLACE(INDEX(MySheets,ROW()-3),1,FIND("]",INDEX(MySheets,ROW()-3)),"")
R4:R21R4=HYPERLINK("#'"&Q4&"'!B5",Q4)


To assist with my question above I have shown a partial list of my very hidden sheets, only the ones highlighted yellow are the ones I would like to make visible. Thanks in advance.
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,428
Members
448,896
Latest member
MadMarty

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