application user input

G

Guest

need a way to get excell to enter the "application user" name into cell c3 ?

Sub auto_open()
Sheets("log").Select
Rows("2:2").Select
Selection.Insert Shift:=xlDown
Range("A2").Select
ActiveCell.FormulaR1C1 = "=NOW()"
Range("B2").Select
ActiveCell.FormulaR1C1 = "=NOW()"
Range("A2").Select
Selection.NumberFormat = "dd-mmm-yy"
Range("B2").Select
Selection.NumberFormat = "h:mm"
Range("c2").Select

End Sub

thanks in advance
 
N

Norman Jones

Hi Rich,

Perhaps there is a hidden subtlety, but try:

Sheets("log").Range("C3") = Application.UserName
 
G

Guest

thanks it worked, thought it would be sommert like imput ,, which is why i
couldnt get it to work
 

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