Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
GMD GMD is offline
external usenet poster
 
Posts: 2
Default Macro: Unhiding a row daily

I have created a macro to unhide a row on a spreadsheet that I maintain
daily. The problem that I have is this macro unhides the same row. I do not
know what scripting to use that will unhide the next row down day after day.
General ex: (assuming today was 2/28/09) Each row contains a date, 3/1/09 for
starts. I would need 3/2-3/30/09 hidden. Then the next day I would need to
be able to view 3/1-3/2/09 but have 3/3-3/30/09 hidden. Does anyone have any
scripting for this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 225
Default Macro: Unhiding a row daily

Try one of the two macros below...
Second will unhide all rows upto today... the first only today's rows (so if
you don't run it on a day... that days rows will remain hidden)

Sub unhideTodaysRow()
For i = 1 To 31
If Cells(i, 1) = Date Then
ActiveSheet.Rows( i).Hidden = False
Exit Sub
End If
Next
End Sub

or

Sub unhideAllRowsUptoToday()
For i = 1 To 31
If Cells(i, 1) = Date Then
ActiveSheet.Rows("1:" & i).Hidden = False
Exit Sub
End If
Next
End Sub

"GMD" wrote:

I have created a macro to unhide a row on a spreadsheet that I maintain
daily. The problem that I have is this macro unhides the same row. I do not
know what scripting to use that will unhide the next row down day after day.
General ex: (assuming today was 2/28/09) Each row contains a date, 3/1/09 for
starts. I would need 3/2-3/30/09 hidden. Then the next day I would need to
be able to view 3/1-3/2/09 but have 3/3-3/30/09 hidden. Does anyone have any
scripting for this?

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
Macro to Open Daily Report KurtB Excel Discussion (Misc queries) 2 September 9th 08 02:14 PM
"Form / Button" Macro for Unhiding Sheets Melissa Excel Discussion (Misc queries) 0 September 5th 08 06:07 PM
Unhiding All hidden Worksheets with a Macro/VBA Code robertguy Excel Discussion (Misc queries) 2 December 2nd 05 03:10 PM
Start Macro Daily task GoBucks Excel Discussion (Misc queries) 1 November 10th 05 04:34 PM
Daily Macro Triggering JB2010 Excel Discussion (Misc queries) 2 November 2nd 05 04:28 PM


All times are GMT +1. The time now is 02:36 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"