ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Create Sheet, Hide Sheet (https://www.excelbanter.com/excel-discussion-misc-queries/164075-create-sheet-hide-sheet.html)

Dave

Create Sheet, Hide Sheet
 
How can I hide a sheet once I have created it.

I have done:-

newSheet = "Sheet 1"
Sheets.Add.Name = newSheet

How do I then hide this sheet?

Thanks!
Dave

Bob Phillips

Create Sheet, Hide Sheet
 
Activesheet.Visible = xlSheetHidden

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Dave" wrote in message
...
How can I hide a sheet once I have created it.

I have done:-

newSheet = "Sheet 1"
Sheets.Add.Name = newSheet

How do I then hide this sheet?

Thanks!
Dave




Bob Phillips

Create Sheet, Hide Sheet
 
or

Worksheets(newSheet).Visible = xlSheetHidden

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Dave" wrote in message
...
How can I hide a sheet once I have created it.

I have done:-

newSheet = "Sheet 1"
Sheets.Add.Name = newSheet

How do I then hide this sheet?

Thanks!
Dave





All times are GMT +1. The time now is 10:27 AM.

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