A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to get pointer in new cell on Open?



 
 
Thread Tools Display Modes
  #1  
Old October 9th, 2005, 04:20 AM
Jazz Drummer
external usenet poster
 
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  
Old October 9th, 2005, 10:52 AM
Ron de Bruin
external usenet poster
 
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  
Old October 9th, 2005, 03:13 PM
Jazz Drummer
external usenet poster
 
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




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cell color index comparison MINAL ZUNKE New Users 1 June 30th, 2005 07:11 AM
too many cell formats.. can't open the file at all... Dorian General Discussion 2 September 16th, 2004 11:20 PM
IF E3 & E10 = TRUE set this cell to "Yes", else set to "No" Timothy L Worksheet Functions 5 August 27th, 2004 02:28 AM
IF only.....IF only.... SmokingMirror Worksheet Functions 8 August 7th, 2004 07:37 PM
Convert a Cell Reference to Text Chuck Buker Worksheet Functions 6 September 22nd, 2003 05:04 PM


All times are GMT +1. The time now is 10:08 AM.


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