LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Issue with Hiding Sheets Depending on Workbook Name

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding Sheets in workbook - help burritoj Excel Discussion (Misc queries) 4 October 1st 08 12:13 AM
hiding rows depending on the date Jan Buckley Excel Discussion (Misc queries) 4 December 22nd 06 11:13 AM
Hiding named ranges depending on a cell value Ctech[_109_] Excel Programming 3 March 20th 06 11:07 AM
Hiding sheets within a workbook Brian Charts and Charting in Excel 1 December 15th 05 07:14 PM
hiding a control depending on a cell's value yoram Excel Programming 13 November 16th 05 10:02 PM


All times are GMT +1. The time now is 09:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"