Getting computer name using VBA

后端 未结 3 520
暗喜
暗喜 2020-12-13 08:40

Is there a way to get the name of the computer in VBA?

3条回答
  •  渐次进展
    2020-12-13 09:19

    Dim sHostName As String
    
    ' Get Host Name / Get Computer Name
    
    sHostName = Environ$("computername")
    

提交回复
热议问题