ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   hidding worksheet within a workbook (https://www.excelbanter.com/excel-programming/335338-hidding-worksheet-within-workbook.html)

Colin2u

hidding worksheet within a workbook
 
is there a way to hide/unhide a worksheet in a given workboot without
disturbing the other worksheets of that workbook?

STEVE BELL

hidding worksheet within a workbook
 
Use these 3:

Sheets(1).Visible = True ' unhide a sheet
Sheets(1).Visible = False ' hide a sheet
Sheets(1).Visible = xlVeryHidden ' really hide a sheet - sheet can only be
accessed with code.

you can use Sheets("Sheet1")
or
set wkst = Sheets("Sheet1")
wkst.Visible=True
--
steveB

Remove "AYN" from email to respond
"Colin2u" wrote in message
...
is there a way to hide/unhide a worksheet in a given workboot without
disturbing the other worksheets of that workbook?





All times are GMT +1. The time now is 11:56 PM.

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