Save username and date

J

jlclyde

I woudl like to track changes as they happen to a sheet. Not the
changes themselves but who actually changed them and when. Something
like
Dim LstRw As Long
LstRw = Range("A65536").End(xlup).Row + 1
Range("A" & LstRw) = UserName and Now()

I am not sure how this is done.

thanks,
Jay
 
J

jlclyde

I woudl like to track changes as they happen to a sheet.  Not the
changes themselves but who actually changed them and when.  Something
like
Dim LstRw As Long
LstRw = Range("A65536").End(xlup).Row + 1
Range("A" & LstRw) = UserName and Now()

I am not sure how this is done.

thanks,
Jay

I found it. It is Application.UserName
Sorry,
Jay
 
J

Jim Thomlinson

FYI Application.UserName returns the name that the user supplied when XL was
installed. It can also be changed by the user at any time. Generally speaking
you are better of using the Windows login name.

cells(rows.count, "A").end(xlup).offset(1,0).value = Environ("Username")
 

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

Top