Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2007

Tip: Looking for answers? Try searching our database.

excel start up

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
craig - 30 Dec 2007 23:30 GMT
i have a working rota spreadsheet with dates in the columns and rota info
below, how do i get it to show todays date info at start up
RichardSchollar - 31 Dec 2007 08:41 GMT
With this file open and visible in the main Excel window, right-click
on the little Excel file icon to the left of the File menu (assumes
you are using xl2003) and choose View Code.  Paste the following into
the code area of the VBE that will open up:

Private Sub Workbook_Open()
Dim lngRow As Long
With Sheets("Sheet1") ' amend sheet name as appropriate
   lngRow = Application.Match(CLng(Date), .Range("A:A"))  'amend
column as appropriate
   Application.Goto .Range("A" & lngRow), True  'amend column as
appropriate
End With
End Sub

You will need to amend the sheet name and the column to whichever
sheet your data is on and which column the dates are in.  Save the
workbook, close and reopen, enabling macros when you do.

Hope thios helps!

Richard

> i have a working rota spreadsheet with dates in the columns and rota info
> below, how do i get it to show todays date info at start up

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.