ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Unhide sheets (https://www.excelbanter.com/excel-programming/345301-unhide-sheets.html)

Brian Matlack[_24_]

Unhide sheets
 

Hi!
What code do I use to Unhide mutiple sheets rather than one at a time?
I've tried sheets("sheet1", "sheet2").Visible = True it does'nt work.
Thanks for any help


--
Brian Matlack
------------------------------------------------------------------------
Brian Matlack's Profile: http://www.excelforum.com/member.php...fo&userid=3508
View this thread: http://www.excelforum.com/showthread...hreadid=484052


dominicb[_163_]

Unhide sheets
 

Good evening Brian Matlack

These three lines should do the trick.

For Each Sht In ActiveWorkbook.Sheets
Sht.Visible = True
Next Sht

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=484052



All times are GMT +1. The time now is 04:19 AM.

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