find cell with today's date

J

James D

my spreadsheet has column A consisting of each date in 2006. I would like my
spreadsheet, upon opening, to go to the row with today's date in column A and
move the spreadsheet up so that is the top row below my freeze line currently
at row 3. Can I do this without visual basic? How?
 
B

Bob Phillips

Private Sub Workbook_Open()
With Worksheets("Sheet1")
.Activate
.Range("A" & Date - DateSerial(Year(Date), 1, 1) + 1).Select
End With
End Sub


'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code
 
D

David

=?Utf-8?B?SmFtZXMgRA==?= wrote
my spreadsheet has column A consisting of each date in 2006. I would
like my spreadsheet, upon opening, to go to the row with today's date
in column A and move the spreadsheet up so that is the top row below
my freeze line currently at row 3. Can I do this without visual basic?
How?

Private Sub Workbook_Open()
Application.Goto ActiveSheet.Columns(1).Find(Date), 1
End Sub
 
Top