Username question

  • Thread starter Thread starter Dave
  • Start date Start date
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
 

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

Back
Top