The User Name is set under Tools, Options, General tab. However, if you're trying to get the name of the person logged into Windows, you'll need the following code:
Environ("USERNAME")
You could create a function as follows:
Function UserNameWindows() As String UserName = Environ("USERNAME")
End Function
abach
1728 Posts
426
0
Posted September 15th, 2006 19:00
UserName = Environ("USERNAME")
End Function