Get current user logon name 
Author Message
 Get current user logon name

Does anyone know how to get the current user logon name?
Currently I use this which works great under NT but when using this with
98/95 I get an error

Sub Signature()

myusername = Environ("UserName")

    ChangeFileOpenDirectory "\\ServerName\images$\"
    Selection.InlineShapes.AddPicture FileName:="\\ServerName\images$\" _
    & myusername & ".jpg", LinkToFile:=True, SaveWithDocument:=False

End Sub

Sun, 26 Jan 2003 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Getting the user's logon name and computer name

2. Getting the User Group name using Current User Function

3. Getting WinNT logon names and user groups

4. Getting user name during NT logon

5. Getting current Win95 user name

6. VB 4.0 - Getting the current User Name

7. Current Domain User Name of logged in user?

8. How can I get current logon name?

9. get current user logon computer

10. getting users name and workstation name Urgent

11. Retrieve name of current sub/function and name of current module

12. Getting Windows logon name ?


Powered by phpBB® Forum Software