Hi,
I used the below code to display the current username while opening the workbook.
[pre]
[/pre]
It's working fine. But it gets the userid instead of username.
E.g:
UserId: madasamv
Username: Vargeesh Madasamy
It displays "madasamv".
Please advise me.
Regards,
Vargeesh
I used the below code to display the current username while opening the workbook.
[pre]
Code:
Private Sub Workbook_open()
MsgBox "Hello " & Environ("Username") & "!", vbInformation, "Welcome Note"
End Sub
It's working fine. But it gets the userid instead of username.
E.g:
UserId: madasamv
Username: Vargeesh Madasamy
It displays "madasamv".
Please advise me.
Regards,
Vargeesh