Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Macro to show/hide rows based on a range of dates

I have a spreadsheet in which users enter data each day with each row being a
record for a single day. Column B holds the dates beginning at B2 and going
down to whatever is the last date. At least one year of data will be in the
spreadsheet but it is very likely that several years' worth of data could be
collected in the spreadsheet. I would like to have just the current day and
and a limited range of preceding days displayed by default when the
spreadsheet is opened. This could be just the current day and a fixed number
of preceding days (such as 5 or 10). Ideally, users would just see the
current day, the preceding days of the current work week, and all the days of
the previous work week. A work week is Mon.-Fri. No data is collected for
non-working days and no non-working dates are on the sheet. The spreadsheet
has been set up with dates going to the end of the current year (and this may
be extended to the end of the next year or even beyond). However, users
wouldn't need to see future days because these are irrelevant until data is
available to fill in for those dates. I would like to give users the option
to toggle a checkbox or radio button to show all dates from the current day
to the earliest date in the spreadsheet or just those dates shown by default.
I have found several examples of code to hide/show rows or columns based on
various criteria, including a date, but I am having trouble putting it all
together, particularly with a toggle for a date range (either a simple fixed
number date range or the date range I described as ideal). I would appreciate
any suggestions or help.
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
Hide & Show Rows based on Check Boxes loza Excel Discussion (Misc queries) 1 September 14th 08 01:49 AM
Macro to show/hide rows New2Macros Excel Programming 10 May 13th 08 10:48 PM
Hide/Show Rows based on Cell Value with Data Validation Shelly Excel Programming 3 January 4th 08 11:01 PM
Hide/Show range based AMell Excel Programming 3 August 1st 07 08:36 PM
hide / show rows based on two drop down selectiosn Maritza Excel Programming 3 April 1st 07 10:26 AM


All times are GMT +1. The time now is 11:25 AM.

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"