Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2003
    Posts
    123

    Question Unanswered: Capture Windows user ID in code

    How can I easily retrieve a Windows (XP pro) user's name or ID from within VBA code? For instance, on our network we sign in with a 5 character user ID. I would like to pick up this user ID while in a VBA routine.

  2. #2
    Join Date
    May 2005
    Location
    Nevada, USA
    Posts
    2,888
    Provided Answers: 6

  3. #3
    Join Date
    May 2004
    Location
    New York State
    Posts
    1,178
    Code:
    =Right(Environ(10),5)
    Hope this helps,
    Sam

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •