View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Geert Nauta[_2_] Geert Nauta[_2_] is offline
external usenet poster
 
Posts: 1
Default Looking for network-username with Excel macro

Thanks Norman.
Does excactly what I want.
regards
Geert

-----Original Message-----
Hi Nauta,

Michel Pierron recently suggested:

MsgBox CreateObject("Wscript.Network").UserName


---
Regards,
Norman



"Geert Nauta" wrote in message
...
Hi there,
Could anyone please tell me how to pick up with a macro,
the username on a workstation in a network. (NOT the
username as used for MS-Office!)
Why? I am building a program to place textfiles with

data
from various workstations to the server. These textfiles
should carry the name of the user that is logged into

the
network at that moment on that workstation.

Thanks,
Geert Nauta



.