View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default enter user in cell

Try this one line UDF:

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

--
Gary''s Student - gsnu200735


"pbs" wrote:

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