ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel 2000 - find todays date (https://www.excelbanter.com/excel-discussion-misc-queries/98551-excel-2000-find-todays-date.html)

Richard

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

Bob Phillips

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




Gary''s Student

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



All times are GMT +1. The time now is 04:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com