![]() |
find cell with today's date
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? -- Thank you all for your help! |
find cell with today's date
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 -- HTH RP "James D" wrote in message ... 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? -- Thank you all for your help! |
find cell with today's date
?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 -- David |
All times are GMT +1. The time now is 09:26 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com