Need macro to get machine name

  • Thread starter Thread starter BCS
  • Start date Start date
B

BCS

Is there any way to get the machine name with an Excel macro? I'd even
settle for a simple DOS script that I could launch from the macro.

Thanks,

Barry
 
WOW i like that function.. thank god im still learning new stuff.

anyone know what args this environ function can accept?
 
Sub listEnviron()
Dim i As Integer

i = 1
While Environ(i) <> ""
Debug.Print i, Environ(i)
i = i + 1
Wend
End Sub
 
Back
Top