From: Chip Pearson on


Debug.Print Environ("username")

works fine for me on Windows 7 Ultimate 64-bit, in both XL2003 and
XL2007.

Cordially,
Chip Pearson
Microsoft MVP 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
[email on web site]


On Sat, 13 Feb 2010 10:15:56 +0100, Jamen Lone <JamenLone(a)gmx.net>
wrote:

>Hi all,
>
>I'm using XL2003 vba with WIN7 professional and my old vba code won't work.
>
>i create in XP some code lines to read out the user which is log on.
>now i want to do the same with win7 prof 64bit
>can someone give me hints ??
>
>thanks in advance