To hide a sheet, go to the Format menu, choose Worksheet, and then
select Hide. To make a hidden sheet visible, go to the Format menu,
choose Worksheet, and then select UnHide.
You can do this with code in a manner similar to the following:
' hide the sheets
ThisWorkbook.Worksheets("Sheet1").Visible = xlHidden
ThisWorkbook.Worksheets("Sheet2").Visible = xlVeryHidden
' unhide the sheets
ThisWorkbook.Worksheets("Sheet1").Visible = xlVisible
ThisWorkbook.Worksheets("Sheet2").Visible = xlVisible
' hide all but active sheet
Dim WS As Worksheet
For Each WS In ThisWorkbook.Worksheets
If StrComp(ActiveSheet.Name, WS.Name, vbBinaryCompare) <> 0 Then
WS.Visible = xlSheetHidden
End If
Next WS
' unhide all sheets
For Each WS In ThisWorkbook.Worksheets
WS.Visible = xlSheetVisible
Next WS
When the Visible property is xlVisible, the sheet is visible. When the
Visible property is xlHidden, the sheet is hidden but can be made
visible from the Format menu. When the Visible property is
xlVeryHidden, the sheet is hidden and cannot be made visible from the
Format menu.
Cordially,
Chip Pearson
Microsoft MVP
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
On Sat, 29 Nov 2008 07:46:01 -0800, Abdul
<(E-Mail Removed)> wrote:
>Can you make sheets invisible and if so, how can you recall them [make them
>visible again]?