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

Similar Threads

Unique Computer ID 0
List out Computers in LAN 9
Excel VBA 0
Access Print Files from Query Results 0
Divide By Zero Error 2
Search Module Content 4
vba code help for multiple string searching 0
Cannot Change Computer Name 3

Top