Subject: user name in the code
Posted By: uhd42 Post Date: 5/16/2006 3:13:05 AM
hello,

In vba excel.
 is there any way that i could use the author name of the worksheet or the user name that login the computer (much better),in the vba code and put it in a cell i want.

thanks


Reply By: vemaju Reply Date: 5/16/2006 3:22:34 AM
Hi,


Sub InsertUserName()
'*** User name
Range("A1") = Environ("Username")
'*** Author name
Range("A2") = Application.UserName
End Sub



-vemaju

Go to topic 25773

Return to index page 286
Return to index page 285
Return to index page 284
Return to index page 283
Return to index page 282
Return to index page 281
Return to index page 280
Return to index page 279
Return to index page 278
Return to index page 277