computer name

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,
 
M

Mart

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top