View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.programming
Eric[_20_] Eric[_20_] is offline
external usenet poster
 
Posts: 31
Default Computer Name with VBA

It works, thank you.

Eric


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
in case you need some code to show usage, maybe something like this:

Sub get_name()
Dim computername As String
computername = Environ("computername")
MsgBox computername
End Sub


--


Gary


"Eric" wrote in message
...
Hello,

I would like my macro to check the name of the computer before running.
How can I retrieve the computer name value through a macro?


Thank you.


Eric