by Brian Lai (10 Submissions)
Category: VB function enhancement
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
This code gets your user name *click* just like that.
Code Returns
It returns your user name.
Side Effects
Not sure if it works on anything other than VB6 because I don't have anything to test on for VB4 and VB5.
MsgBox Environ("USERNAME")