Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default searching a date range.

Hi i have a list of dates from 2001 to 2004. i am wanting to be able t
have a macro that calls a msgbox and asks for the year that they wan
to display. so if they type 2003 all the records in year 2003 ar
shown. if there are no records for that year then a error box i
recieved. my date format is 12/02/01 all in one cell. does anyone kno
how i am able to do this ?

Thanks for your help.

Chri

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default searching a date range.

Hi Chris
why not use 'Dat6a - Autofilter' for this. Just add a
helper column with the formula
=YEAR(A1)
and let the user filter the data with this helper column?

-----Original Message-----
Hi i have a list of dates from 2001 to 2004. i am wanting

to be able to
have a macro that calls a msgbox and asks for the year

that they want
to display. so if they type 2003 all the records in year

2003 are
shown. if there are no records for that year then a error

box is
recieved. my date format is 12/02/01 all in one cell.

does anyone know
how i am able to do this ?

Thanks for your help.

Chris


---
Message posted from http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default searching a date range.

Yeah thanks for the fast reply, that worked just fine! cheers. chri

--
Message posted from http://www.ExcelForum.com

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
SEARCHING RANGE Mickey Mouse[_3_] Excel Discussion (Misc queries) 4 April 12th 08 05:19 AM
Searching a date range to output values according to a constant. Geebz Excel Discussion (Misc queries) 2 December 1st 06 09:34 AM
Searching a date range to output values according to a constant. daddylonglegs Excel Discussion (Misc queries) 0 November 30th 06 08:23 PM
searching a range for a sum... chickenshed_bob Excel Worksheet Functions 4 March 30th 06 08:49 PM
3d range searching thephoenix12 Excel Discussion (Misc queries) 0 June 15th 05 06:18 PM


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