How can I display a user name is Excel?

  • Thread starter Thread starter Phil_M
  • Start date Start date
P

Phil_M

Rather than having everyone enter their name in a spreadsheet before printing
their reports I was wondering if there is a function that would display the
user's user or display name in a cell.

Thanks,
Phil
 
not sure what you want to do, but this line of code would enter the username
that was used to log in to windows into cell A1

range("A1").Value = environ("username")
if you need more info, post back.
 

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