Application.UserName retrieves wrong username / where does it get its data?

  • Thread starter Michiel via OfficeKB.com
  • Start date
M

Michiel via OfficeKB.com

Hi,

Does anyone know where Application.UserName retrieves its data?

When I entered the firm my Windows UserID was ABC
Later they changed it to XYZ

Everywhere in Windows I can see my user-ID is XYZ (eg in documents and
settings and of course when logging on/off)

However, when I run "?Application.UserName" in the immediate window, VBA
retrieves my old user-ID ABC instead of XYZ.

Also, when I create a new file and lok at properties. The user-ID ABC is
shown.

Where should I look to fix this?

Thanks!
 
M

Michiel via OfficeKB.com

Shauna and Jay,

It worked (both ways)!
Thank you so much both for help!!

Michiel.
 

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

Top