Macro to open spreadsheet to today's date

aspcrowley

New Member
Joined
Sep 17, 2008
Messages
9
I created a macro to make my spreadsheets open to today's date. I copied this from an article in CFO magazine by Bill Jelen. The macro which I copied into This Workbook in Microsoft Excel Objects is:

Private Sub Workbook_Open()
Worksheets("Sheet1").Select
x = Day(Date)
On Error Resume Next
Worksheets("Sheet1").Columns(2).Find(What:=x, LookIn:=xlValues).Activate
Application.Goto Selection, True
End Sub

Now, I have no undo function, cannot toggle between open files and can't open new files from explorer, only by opening from within Excel.

In addition, the active cell appears to be constantly updating. In the content bar at the top, the contents appear to be continuously updating as the content of any cell is flickering as if it is being rapidly updated.

Can anyone help me?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

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