Here is a VBA code that can help you quickly jump to the cell with current date.
1. Enable the workbook you want to use, and press Alt + F11 keys to open the Microsoft Visual Basic for Applications window.
2. Click Insert > Module, paste below code to the Module.
VBA: Jump to current date
Private Sub Workbook_Open()
Dim daterng As Range
Dim DateCell As Range
Dim WorkSht As Worksheet
Dim dateStr As String
Application.ScreenUpdating = False
For Each WorkSht In Worksheets
'Set daterng = Range("A:A")
Set daterng = WorkSht.UsedRange
For Each DateCell In daterng
On Error Resume Next
dateStr = DateCell.Value
If dateStr = Date Then
Application.ScreenUpdating = True
3. Press F5 key, then the cursor jumps to the cell with current date wherever you locate in the workbook.
Jump to the current date with Find and Replace
If you are not familiar with VBA code, you also can apply the Find and Replace utility to jump to the current date.
1. Enable the sheet which contains the date list, and select a blank cell, type this formula =TODAY(), press Enter key, now you get the today date.
2. Press Ctrl + C to copy the today date, and go to select the list of dates, and then press Ctrl + F to enable the Find and Replace dialog, in the Find what textbox, press Ctrl + V to the paste the today date into. See screenshot:
3. Click Find All. Now the cursor jumps to the cell with today in the selected list.
Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
More than 300 powerful features. Supports Office/Excel
2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features
30-day free trial. 60-day money back guarantee.
I am a novice with Microsoft Office, and Excel, but I am a programmer by nature. If the objective is to locate a cell with today's date - and position the cursor to it, I can't see the need for all that code.
A simple code (listed below) created in a macro, and assign the macro to a letter say "T", and as an option you may even created a button and assign the macro to it, so when you click the button you will travel directly to that cell.
The comments lines (those that start with ') are optional. You may choose not to type them. I used them for troubleshooting the code. "Msgbox" is a nice tool to communicate with you.
Here is my code:
Sub GoToToday() ' ' GoToToday Macro ' ' Keyboard Shortcut: Ctrl+t ' Dim DateRange, DateCell As Range Dim i As Byte Dim x As String On Error Resume Next
MySheet = ActiveSheet.Name
' MsgBox (Date) For i = 12 To 130 x = "A" & i ' MsgBox (x) ' MsgBox (Worksheets(MySheet).Range(x))
If Worksheets(MySheet).Range(x).Value = Date Then ' MsgBox (i) ' MsgBox (x) ' MsgBox (Worksheets(MySheet).Range(x)) x = "D" & i Range(x).Select Exit Sub End If Next: End Sub