View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Norman Jones Norman Jones is offline
external usenet poster
 
Posts: 5,302
Default computer name find

Hi Craig,

Try:

MsgBox Environ("ComputerName")

---
Regards,
Norman



"Craig Wilks" wrote in message
...
I run code on two different computers with two different printer
arrangments. I want to print using the code but need to have the code
ascertain which computer it is running on first. I thought there may be
some code to do this by finding the IP Address or the computer name for
instance.

Craig Wilks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!