Visual Basic Procedure To Get Current User Name (152970)
The information in this article applies to:
- Microsoft Excel for Windows 95 7.0a
- the operating system: Microsoft Windows NT 3.51
This article was previously published under Q152970 SUMMARY
You can make a Windows API (application programming interface) call to a
Microsoft Windows DLL (dynamic-link library) to get the current user name.
The current user name can be obtained by using the GetUserNameA function in
ADVAPI32.DLL.
Modification Type: | Minor | Last Reviewed: | 10/10/2006 |
---|
Keywords: | kbcode kbhowto kbProgramming KB152970 |
---|
|