ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Host name (https://www.excelbanter.com/excel-programming/390405-host-name.html)

OlieH

Host name
 
How can I get the host name of the computer that is running a macro, from
inside the macro?

All help is greatly appreciated.

NickHK

Host name
 
One way:
?environ("COMPUTERNAME")

NickHK

"OlieH" wrote in message
...
How can I get the host name of the computer that is running a macro, from
inside the macro?

All help is greatly appreciated.




OlieH

Host name
 
NickHK, thank you very much. That worked just fine.

"NickHK" wrote:

One way:
?environ("COMPUTERNAME")

NickHK

"OlieH" wrote in message
...
How can I get the host name of the computer that is running a macro, from
inside the macro?

All help is greatly appreciated.






All times are GMT +1. The time now is 12:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com