Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Excel 2000 - find todays date

I am trying to create a macro to find todays date in a worksheet and then go
to that cell.

Any help with this is most appreciated.

Thank you.
--
Richard
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Excel 2000 - find todays date

Look at Find in the VBA help.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Richard" wrote in message
...
I am trying to create a macro to find todays date in a worksheet and then

go
to that cell.

Any help with this is most appreciated.

Thank you.
--
Richard



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Excel 2000 - find todays date

Try:

Sub tdayy()
Dim d As Date
d = Int(Now())
Dim r As Range
For Each r In ActiveSheet.UsedRange
If r.Value = d Then
r.Select
Exit Sub
End If
Next
End Sub
--
Gary's Student


"Richard" wrote:

I am trying to create a macro to find todays date in a worksheet and then go
to that cell.

Any help with this is most appreciated.

Thank you.
--
Richard

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Excel 5 and Excel 2000 question. Naveen Mukkelli Excel Discussion (Misc queries) 1 March 3rd 06 09:05 AM
where can i find Formulas for excel 2000? Mrs.S.Paul Excel Worksheet Functions 1 February 24th 06 12:35 PM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Setting today's date automatically in Excel. Ezlpo Excel Worksheet Functions 6 February 11th 05 02:27 PM


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