Insert a button in excel such that when u press a the button it moves to current day.

kishengiggs1

New Member
Joined
Jun 21, 2011
Messages
23
Hello everyone,

I have a excel file that has all the dates for year 2012. I check this everyday for updates on each day for a specific date. Usually i am trying to look for todays date. I am fed up of scrolling up and down everyday to find it.

Is there a way when i press a button for example: (Today) it will bring me straight to that cell?

So basically if i press a button it will bring to the cell of current date.

thanks
Kishen
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Why not use the find feature in Excel? Ctrl + F
 
Upvote 0
Try like this

Code:
Sub atest()
Dim Found As Range
Set Found = Columns("A").Find(what:=Date, LookIn:=xlValues, lookat:=xlWhole)
If Not Found Is Nothing Then Found.Select
End Sub
 
Upvote 0
Record a macro to use the find then just edit the code to pick out the Date. Here is adjusted example.

Sub Macro1()
Dim dte As Date
dte = Date

Cells.Find(What:=dte, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,874
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top