Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Excel 单元格中显示 Windows 用户名。
我怎样才能做到这一点?
Range("A1").value = Environ("Username")
这比Application.Username不总是提供 Windows 用户名要好。感谢凯尔指出这一点。
Application.Username
Application Username
Environ("Username")