From: Chip Pearson on

Debug.Print Environ("username")

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

Chip Pearson
Microsoft MVP 1998 - 2010
Pearson Software Consulting, LLC
[email on web site]

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

>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