Using Visual Basic in Excel, how do I obtain the user ID of the user opening the file?
A AL Mar 26, 2009 #1 Using Visual Basic in Excel, how do I obtain the user ID of the user opening the file?
C Charlotte E Mar 26, 2009 #3 Using Visual Basic in Excel, how do I obtain the user ID of the user opening the file? Click to expand... http://www.EXCELGAARD.dk/Lib/UDFs/USERINFO/
Using Visual Basic in Excel, how do I obtain the user ID of the user opening the file? Click to expand... http://www.EXCELGAARD.dk/Lib/UDFs/USERINFO/
C Chip Pearson Mar 26, 2009 #4 Use Environ("Username") This returns the Windows user name. Cordially, Chip Pearson Microsoft Most Valuable Professional Excel Product Group, 1998 - 2009 Pearson Software Consulting, LLC www.cpearson.com (email on web site)
Use Environ("Username") This returns the Windows user name. Cordially, Chip Pearson Microsoft Most Valuable Professional Excel Product Group, 1998 - 2009 Pearson Software Consulting, LLC www.cpearson.com (email on web site)
J Jacob Skaria Mar 27, 2009 #5 Few more. If you want to check the domain and user name use the below ... '-----Retrieve Domain Name ' Reference Active DS Type Library Tools|Reference Dim strAD As New ADSystemInfo strDomainname = strAD.DomainShortName '-----Get User Name Set objNet = CreateObject("WScript.NetWork") strUserName = Trim(objNet.UserName) If this post helps click Yes
Few more. If you want to check the domain and user name use the below ... '-----Retrieve Domain Name ' Reference Active DS Type Library Tools|Reference Dim strAD As New ADSystemInfo strDomainname = strAD.DomainShortName '-----Get User Name Set objNet = CreateObject("WScript.NetWork") strUserName = Trim(objNet.UserName) If this post helps click Yes