R Roger Govier Jan 5, 2004 #2 Hi Dave Try Sheets("Sheet1").Visible = False .. .. .. Sheets("Sheet1").Visible = True
D dave Jan 5, 2004 #3 Thnks Roger Govier said: Hi Dave Try Sheets("Sheet1").Visible = False . . . Sheets("Sheet1").Visible = True Click to expand...
Thnks Roger Govier said: Hi Dave Try Sheets("Sheet1").Visible = False . . . Sheets("Sheet1").Visible = True Click to expand...
T Tom Ogilvy Jan 5, 2004 #4 Public Sub Hidesheets() Dim sh as Worksheet for each sh in thisworkbook.worksheets if sh.Name <> "Sheet1" then sh.visible = xlSheetHidden else sh.Visible = xlSheetVisible end if Next End Sub as an example.
Public Sub Hidesheets() Dim sh as Worksheet for each sh in thisworkbook.worksheets if sh.Name <> "Sheet1" then sh.visible = xlSheetHidden else sh.Visible = xlSheetVisible end if Next End Sub as an example.
T Tom Ogilvy Jan 5, 2004 #5 Just to add, the acceptable constants are: ? xlSheetVisible -1 ? xlSheetHidden 0 ? xlSheetVeryHidden 2 True is coerced to -1 False is coerced to 0 so they work as well.
Just to add, the acceptable constants are: ? xlSheetVisible -1 ? xlSheetHidden 0 ? xlSheetVeryHidden 2 True is coerced to -1 False is coerced to 0 so they work as well.