ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Unhide All VeryHidden Sheets in a workbook (w/o naming them) (https://www.excelbanter.com/excel-programming/398686-unhide-all-veryhidden-sheets-workbook-w-o-naming-them.html)

J.W. Aldridge

Unhide All VeryHidden Sheets in a workbook (w/o naming them)
 
I know how to hide sheets - veryhidden.
It requires me to name which sheets I want hidden...

However,
Any code to unhide ALL veryhidden sheets in a workbook - without
naming them all?

thanx


Sam Wilson

Unhide All VeryHidden Sheets in a workbook (w/o naming them)
 
Try this:

sub hiddensheets()

dim ws as worksheet
for each ws in worksheets
if ws.visible = xlsheetveryhidden then ws.visible=xlsheetvisible
next ws

end sub

"J.W. Aldridge" wrote:

I know how to hide sheets - veryhidden.
It requires me to name which sheets I want hidden...

However,
Any code to unhide ALL veryhidden sheets in a workbook - without
naming them all?

thanx




All times are GMT +1. The time now is 02:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com