Converting Environ("username") from 2003 to 2007

C

Chilidog

I'm in the process of migrating to MS Office 2007. Problem is once I convert
some code items that work in 2003 seem bomb out in 2007. Specifically, the
Environ("username") function. Does anyone know how this converted in 2007?
Thanks in advance for any help, it is greatly appreciated.

Scott
 
C

Chilidog

Is this associated with a particular reference that needs to be added in the
VB design window?
 
G

Gord Dibben

Environ("username") returns the Windows login username.

Might be the problem lies with the OS and method of login??

I run only WindowsXP with multiple users so can't test.


Gord Dibben MS Excel MVP
 

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