enter user in cell

P

pbs

I wish to enter the logged on user to cell C11.

I ahve done this before, but my mind has gone blank, can anyone help.

Many Thanks

Peter
 
G

Gary''s Student

Try this one line UDF:

Public Function user() As String
user = Environ("username")
End Function
 
Top