excel start up

  • Thread starter Thread starter craig
  • Start date Start date
C

craig

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
 
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
 

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

Similar Threads

Excel Is this possible?? 3
Excel 2 into 1 6
Excel Staff Grade and Shift 0
Excel Date Setting 1
Excel Home made rota system- creating a time sheet in relation to demand 0
Excel The logic hurts my head 5
Working time rota's 1
Using Date fields in SQL 2

Back
Top