Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Hide yesterday sheet.

If someone help me on

how to Hide and protect the sheets till yesterday.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Hide yesterday sheet.

You have to tell me how your worksheets are named to give a complete
solution. Here is some code that need to be modified based on the way you
name the worksheets

For Each sht In ThisWorkbook.Sheets
If sht.Name < "Yesterday" And _
sht.Name < "Today" Then

sht.Rows("1:" & Rows.Count).Hidden = True
sht.Protect _
Password:="ABC", _
DrawingObjects:=True, _
Contents:=True, _
Scenarios:=True
End If
Next sht


"Anirudh" wrote:

If someone help me on

how to Hide and protect the sheets till yesterday.

Reply
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
yesterday countif grizzly6969 Excel Discussion (Misc queries) 5 March 27th 09 10:00 PM
Yesterday Loadmaster Excel Worksheet Functions 5 August 8th 08 09:41 PM
Returning Yesterday bollard Excel Worksheet Functions 5 May 12th 08 04:30 PM
continuation from yesterday Mindy Excel Discussion (Misc queries) 4 June 22nd 06 11:13 PM
Sub From Yesterday Josh in Tampa Excel Programming 4 October 23rd 03 04:47 PM


All times are GMT +1. The time now is 01:57 PM.

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

About Us

"It's about Microsoft Excel"