M mik00725 Jun 28, 2006 #1 In a workbook I have 10 different sheets. I want to hide 3 differen sheets and leave the other unhide. How can I do this
In a workbook I have 10 different sheets. I want to hide 3 differen sheets and leave the other unhide. How can I do this
B Bob Phillips Jun 28, 2006 #2 worksheets("Sheet1").visible = xlSheetVisible worksheets("Sheet2").visible = xlSheetHidden etc. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct)
worksheets("Sheet1").visible = xlSheetVisible worksheets("Sheet2").visible = xlSheetHidden etc. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct)
D Don Guillett Jun 28, 2006 #3 something like for each ws in worksheets if ws.name <> "diff1" and ws.name<> "diff2") then ws.visible=false next ws
something like for each ws in worksheets if ws.name <> "diff1" and ws.name<> "diff2") then ws.visible=false next ws
G Gord Dibben Jun 28, 2006 #4 Select the 3 sheets using CTRL + click on sheet tabs. Format>Sheet>Hide Gord Dibben MS Excel MVP