computer name

  • Thread starter Thread starter Isaac Sh
  • Start date Start date
I

Isaac Sh

I need to get the computer name (the one one can see in the network identification tab) using VBA. Is that
possible?

TIA,
 
You may wush to try a quicker version...


strComputerName = Environ("ComputerName")

and for the user

strUserName = Environ("UserName")

if you do a for next loop for 0 to 256 you'll see a whole
host of bits in the Environ collection.

for x = 0 to 255
debug.print Environ(x)
next x

M.
 
Back
Top