Is there a way to find out the current user name and
the users settings path or the currently logged in user?
For WinNT and Win9x
Printable View
Is there a way to find out the current user name and
the users settings path or the currently logged in user?
For WinNT and Win9x
'Get Computer Name
MsgBox Environ("ComputerName")
'Get User Name
MsgBox Environ("Username")
Try this:
You can also you API, if you want API code for this, please let me know.Code:For i = 1 To 26
Debug.Print Environ(i) & vbCrLf
Next i
Regards,
TheBao
hey thanx ppl! thats worked great! Solved alot of
proplems 4 me!