Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
James D
 
Posts: n/a
Default 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!
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default 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!



  #3   Report Post  
Posted to microsoft.public.excel.misc
David
 
Posts: n/a
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
In Excel, Get todays date in a cell tbw Excel Discussion (Misc queries) 2 October 6th 05 12:08 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Need to use IF formula with a Date cell Eric Mc Excel Worksheet Functions 2 June 8th 05 12:38 AM
How do I find the cell address of the 2nd largest of a set? Mr. Snrub Excel Discussion (Misc queries) 4 May 30th 05 12:53 PM
Changing Cell formats to date fields automatically PCLIVE Excel Worksheet Functions 3 April 12th 05 10:34 PM


All times are GMT +1. The time now is 01:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"