Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Setting cursor location on opening

I'm using Excel 2003. When I open a worksheet, I would like the cursor to
move to a cell to the right of a cell with the current date in it. Is there
an easy way to do this?
--
Howard Irwin
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Setting cursor location on opening

Hi,

Can you narrow it down a bit regarding where todays date might be because it
would take a fair while to look through 16million cells and thats on Excel
2003.

Mike

"Howard Irwin" wrote:

I'm using Excel 2003. When I open a worksheet, I would like the cursor to
move to a cell to the right of a cell with the current date in it. Is there
an easy way to do this?
--
Howard Irwin

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Setting cursor location on opening

hi
where is the currents date? does it move?
assuming it is stationary and Sheet 1 A1....
Private Sub Workbook_Open()
Sheets("sheet1").Activate
Range("A2").Select
End Sub
This is workbook event code.
put it in a workbook module.

Regards
FSt1

"Howard Irwin" wrote:

I'm using Excel 2003. When I open a worksheet, I would like the cursor to
move to a cell to the right of a cell with the current date in it. Is there
an easy way to do this?
--
Howard Irwin

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Setting cursor location on opening

Very easy. Just paste this Event sub in the worksheet code area:

Private Sub Worksheet_Activate()
d = Date
For Each r In ActiveSheet.UsedRange
If r.Value = d Then
r.Offset(0, 1).Select
Exit Sub
End If
Next
End Sub
--
Gary''s Student - gsnu200774


"Howard Irwin" wrote:

I'm using Excel 2003. When I open a worksheet, I would like the cursor to
move to a cell to the right of a cell with the current date in it. Is there
an easy way to do this?
--
Howard Irwin

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
How to determine cursor location? Dan Excel Discussion (Misc queries) 4 March 12th 09 03:11 PM
Tracking cursor location JonStein Excel Worksheet Functions 1 May 6th 08 03:34 AM
Function for cursor location sandyboy Excel Worksheet Functions 8 March 28th 07 01:18 PM
Cursor Location Glen Excel Discussion (Misc queries) 2 July 21st 05 09:35 PM
Cursor Location Jack Excel Programming 3 August 22nd 03 02:49 PM


All times are GMT +1. The time now is 12:54 PM.

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

About Us

"It's about Microsoft Excel"