Username question

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Dave,

To get the user name displayed in the Options dialog, use
Application.UserName. To get the network user name, use
Environ("UserName")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
to get a usersname you could use a little vba function:


Code
-------------------
Public Function UsName() As String

UsName = Environ("UserName")

End Functio
 
Back
Top