如何在VBA中获取当前用户名? [英] How do I get the current user name in VBA?
本文介绍了如何在VBA中获取当前用户名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只需要获取当前用户的名称,即可访问他们文件夹中的app数据文件夹.... 我必须在VBA中执行此操作,是的,请帮忙.
I just need to get the name of the current user so I can access the app data folder within their folders.... I have to do this in VBA so yeah...help please.
推荐答案
我相信这就像
Environ("Username")
这篇关于如何在VBA中获取当前用户名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文