ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how to make excel select todays date from a list (https://www.excelbanter.com/excel-worksheet-functions/15264-how-make-excel-select-todays-date-list.html)

sococr

how to make excel select todays date from a list
 
I have a duties worksheet with an interupted list of dates in the 1st column
how do get excel to when opening automatically select or go to today`s cell
day

Ron de Bruin

Hi sococr

Try this macro for column A

Sub Find_Todays_Date()
Dim FindString As Date
Dim Rng As Range
FindString = Date
Set Rng = Range("A:A").Find(What:=FindString, _
After:=Range("A" & Rows.Count), _
LookIn:=xlFormulas, _
LookAt:=xlWhole, _
SearchOrder:=xlByRows, _
SearchDirection:=xlNext, _
MatchCase:=False)
If Not Rng Is Nothing Then
Application.Goto Rng, True
Else
MsgBox "Nothing found"
End If
End Sub



--
Regards Ron de Bruin
http://www.rondebruin.nl



"sococr" wrote in message ...
I have a duties worksheet with an interupted list of dates in the 1st column
how do get excel to when opening automatically select or go to today`s cell
day





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

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