Mike
The code you need is:
Sheets("Sheet Name").Visible = False
or Sheets("Sheet Name").Visible = True when you want to see the sheet again.
JAF
Mike
To hide all tabs in a workbook :-
ActiveWindow.DisplayWorkbookTabs = False
To show all tabs in a workbook :-
ActiveWindow.DisplayWorkbookTabs = True
Other than hiding the whole of a sheet, don't know of a way to hide only the tab for a particular sheet.
Ada
To hide ALL tabs except for 1 (You must have 1 visible anyway)
Use this;
Sub SelectAll_BarOne_Hide()
Dim Sht
'Select all sheets Bar 1
For Each Sht In ThisWorkbook.Sheets
If Sht.Name <> "Your Tab name" Then
Sht.Select False
End If
Next
On Error GoTo ErrHide
ActiveWindow.SelectedSheets.Visible = False
Exit Sub
ErrHide:
MsgBox Err.Number & " : " & Err.Description
End Sub
Ivan
Woops !!!
I misread that question, sorry, was reading
it as a sheet!!
Ivan