Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Find Date form list


Hi - please help ME :)

There is a Date list on worksheet
User must input a date and macro must find it from the list and stop
there

Peter


--
peteriks
------------------------------------------------------------------------
peteriks's Profile: http://www.excelforum.com/member.php...o&userid=37011
View this thread: http://www.excelforum.com/showthread...hreadid=568971

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Find Date form list


Hi, not entirely sure waht you want but if you add a module, paste this
in to it (change the way they have to type in the date to match that of
your date list) add a button to the toolbar and assign this macro to it.
You will need to select all of your date list and give it a range name
"Datelist" or where you see "datelist" in my code change it for the
range your cells cover i.e Range(""A1:A365").

Hope this helps!

Regards,
Simon

Sub FindDate()
Dim rng As Range
Dim t1
Dim mycell
Set rng = Range("datelist")
t1 = InputBox("Enter date you wish to find in this format 01/01/2006",
"Date Finder")
For Each mycell In rng
If mycell.Text = t1 Then
mycell.Select
End If
Next
End Sub


--
Simon Lloyd
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.excelforum.com/member.php...fo&userid=6708
View this thread: http://www.excelforum.com/showthread...hreadid=568971

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Find Date form list


Now there will be another trick
In one worksheet user pick-up a date (moves curson on it)
and from another worksheet macro must find that date
Well :)


--
peteriks
------------------------------------------------------------------------
peteriks's Profile: http://www.excelforum.com/member.php...o&userid=37011
View this thread: http://www.excelforum.com/showthread...hreadid=568971

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
Find latest date from list and corresponding info MCRH Excel Worksheet Functions 2 May 3rd 10 11:27 PM
Find closest future date from list ... Ray Excel Discussion (Misc queries) 3 September 20th 07 07:43 PM
Find a date in a list Leonard615 Excel Discussion (Misc queries) 7 May 10th 07 05:43 PM
Find Today's Date in a List-- How? GaryCam Excel Programming 5 March 11th 06 12:56 PM
list date in the form and vlookup sal21[_33_] Excel Programming 0 September 22nd 04 04:02 PM


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