VBA: Sample Code to Retrieve the Current User Name (161394)
The information in this article applies to:
- Microsoft Visual Basic for Applications 5.0
- Microsoft Excel 97 for Windows
- Microsoft Word 97 for Windows
- Microsoft Access 97
- Microsoft PowerPoint 97 for Windows
This article was previously published under Q161394 SUMMARY
The "More Information" section of this article contains sample Microsoft
Visual Basic for Applications code that calls WNetGetUser (a Windows API
function in the file Mpr.dll) to retrieve the user name used to establish a
network connection.
REFERENCES
For more information about getting help with Visual Basic for Applications,
please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: 163435 VBA: Programming Resources for Visual Basic for Applications
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbcode kbhowto kbProgramming KB161394 |
---|
|