Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
robhargreaves
 
Posts: n/a
Default Hiding rows based on choice in a listbox


Hi

I have a list box provided with values found in a range A14:A502

There are calculations at the top of the page and i would like to
filter the data based on two list boxes - start date and end date.

Start date and end date are both supplied with values for the list from
A14:A502.

So I would like to if the user picks start date of 01/02/05
hide any rows prior to that date

If the user picks a date of nothing it will not hide any rows at the
more recent end of the scale or vice vera. In clearing the cell holding
the list the records return.

If they picked 22-Jul-05 the list would not show rows with any more
recent dates than that.

I cant delete the data but I dont mind putting it somewhere
temporarily.

I have the list boxes in place but how do you make their change reflect
the hiding of the rows?

Thanks if you can help.

Rob


--
robhargreaves
------------------------------------------------------------------------
robhargreaves's Profile: http://www.excelforum.com/member.php...o&userid=25519
View this thread: http://www.excelforum.com/showthread...hreadid=389688

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

It sounds like you're trying to recreate data|filter|autofilter.

You can use custom (under that dropdown arrow) and tell excel to show data
between two dates.

robhargreaves wrote:

Hi

I have a list box provided with values found in a range A14:A502

There are calculations at the top of the page and i would like to
filter the data based on two list boxes - start date and end date.

Start date and end date are both supplied with values for the list from
A14:A502.

So I would like to if the user picks start date of 01/02/05
hide any rows prior to that date

If the user picks a date of nothing it will not hide any rows at the
more recent end of the scale or vice vera. In clearing the cell holding
the list the records return.

If they picked 22-Jul-05 the list would not show rows with any more
recent dates than that.

I cant delete the data but I dont mind putting it somewhere
temporarily.

I have the list boxes in place but how do you make their change reflect
the hiding of the rows?

Thanks if you can help.

Rob

--
robhargreaves
------------------------------------------------------------------------
robhargreaves's Profile: http://www.excelforum.com/member.php...o&userid=25519
View this thread: http://www.excelforum.com/showthread...hreadid=389688


--

Dave Peterson
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
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 07:11 PM
Hiding Rows if the linked rows are blank KG Excel Discussion (Misc queries) 9 May 18th 05 02:32 AM
Hiding Rows Based on Percentile Jonny Excel Discussion (Misc queries) 1 March 31st 05 01:10 PM
Copying Rows when hiding other rows Neutron1871 Excel Worksheet Functions 2 November 3rd 04 11:38 PM
Hiding rows based on date Steve Excel Worksheet Functions 2 November 1st 04 02:30 PM


All times are GMT +1. The time now is 09:20 AM.

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"