VBA Get Username on OSX (or Mac alternative to Environ(“username”))

前端 未结 2 421
走了就别回头了
走了就别回头了 2020-12-20 20:44

My task has been to create a secure (Windows version) Excel workbook that uses macros to validate whether a user has permission to view the contents. In Excel 2010 for Windo

2条回答
  •  粉色の甜心
    2020-12-20 21:16

    Environ("USER") and Environ("LOGNAME") return the same thing on the Mac as the MacScript answer.

提交回复
热议问题