find cell with today's date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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()
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
 
=?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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top