Thread: Username
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Michel Pierron Michel Pierron is offline
external usenet poster
 
Posts: 214
Default Username

Hi Alvin,
Quite symply:
MsgBox CreateObject("Wscript.Network").UserName

MP

"Alvin Hansen" a écrit dans le
message de ...
Hi!!
I use this
name = Environ("username")
Its work allright on a standalone PC but when i try on a PC there loog on

to
a server then username is the name there been used when Windoes was

install
first time. And not the "real" user

Hope someone can help

Best regards alvin