View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default How to automaticaly insert user name (login name) in excel?

Try this one line UDF:

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

--
Gary''s Student - gsnu200747


"dheitz" wrote:

I wish to add a signature line on an Excel document that automatically reads
the users name from either the login or document properties. is this
possible? this will be a template for 40 users and would like to automate as
much as possible.

thanks,