Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am having some syntax issue trying to modify this script now. I am
missing something completly obvious can one of you help. (The reasoning behind this is that when closing the workbook it will save itself twice each time it saves different sheets will be hidden so that when people open each workbook only the information they need will be shown.) Here is my code. Sub hidebut() For Each ws In Worksheets If Active.Workbook = "abefrof.xls" Then If ws.Name < "Solution Direct Tracking" Then ws.Visible = True Next ws If Active.Workbook = "abetest1.xls" Then If ws.Name < "Solution Direct Tracking" Then ws.Visible = False Next ws End Sub Thanks for all the help |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hiding Sheets in workbook - help | Excel Discussion (Misc queries) | |||
hiding rows depending on the date | Excel Discussion (Misc queries) | |||
Hiding named ranges depending on a cell value | Excel Programming | |||
Hiding sheets within a workbook | Charts and Charting in Excel | |||
hiding a control depending on a cell's value | Excel Programming |