View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.programming
CellShocked CellShocked is offline
external usenet poster
 
Posts: 277
Default How to return the machine name?

On Fri, 27 Apr 2012 18:09:08 -0400, GS wrote:

It happens that Ron Rosenfeld formulated :
On Fri, 27 Apr 2012 15:51:14 -0400, GS wrote:

Ron,
I gave that 'Mac' issue some thought and is why I opted for VBA's
Environ() function.


I have no experience with the Mac, as I wrote. But in HELP for the Environ
Function with my Excel 2007, it states that that function is not available on
the Macintosh.


I see that! Hmm.., probably a security thing? I guess it would depend
what OS is on the server the OP uses. His post suggests he is using a
Mac but does not clearly state the OS of the server Excel is running
on. However, I do know Mac users can run Windows on v10 and later...


Get the machine name via a terminal or other MAC method. Assign the
result as a variable name. Read that variable name from within Excel.