Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jazz Drummer
 
Posts: n/a
Default How to get pointer in new cell on Open?

I want to have the pointer in the next new cell each time I open the
workbook. is there a way to do this?
Thanks
  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi Jazz

You can do this for example in the workbook open event (user must enabled macro's)
to insert the date in a cell every time you open it on a new line in "Sheet2"

Private Sub Workbook_Open()
Dim lr As Long
With Sheets("sheet2")
lr = .Range("A" & Rows.Count).End(xlUp).Offset(1, 0).Row
.Cells(lr, "A").Value = Date
.Cells(lr, "B").Value = Environ$("username")
End With
End Sub

See also
http://www.cpearson.com/excel/events.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Jazz Drummer" wrote in message ...
I want to have the pointer in the next new cell each time I open the
workbook. is there a way to do this?
Thanks



  #3   Report Post  
Jazz Drummer
 
Posts: n/a
Default

Ron,
Thanks for the info!

"Ron de Bruin" wrote:

Hi Jazz

You can do this for example in the workbook open event (user must enabled macro's)
to insert the date in a cell every time you open it on a new line in "Sheet2"

Private Sub Workbook_Open()
Dim lr As Long
With Sheets("sheet2")
lr = .Range("A" & Rows.Count).End(xlUp).Offset(1, 0).Row
.Cells(lr, "A").Value = Date
.Cells(lr, "B").Value = Environ$("username")
End With
End Sub

See also
http://www.cpearson.com/excel/events.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Jazz Drummer" wrote in message ...
I want to have the pointer in the next new cell each time I open the
workbook. is there a way to do this?
Thanks




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 can excel open at the same cell where it was saved? robsill Excel Discussion (Misc queries) 1 October 6th 05 07:46 PM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
Syntax for inferred cell references donesquire Excel Worksheet Functions 4 April 4th 05 09:29 PM
Moving cursor to next open cell Wolf New Users to Excel 3 December 16th 04 08:59 PM


All times are GMT +1. The time now is 03:09 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"