Results 1 to 3 of 3

Thread: Username Query

  1. #1
    Join Date
    Jan 2004
    Location
    Newcastle UK
    Posts
    10

    Unanswered: Username Query

    Is there a way to capture the pc username instead of using application.username?

    (The PCs in question are installed with NT4 or XP Pro and Excel 97 - lowest version)

    Many thanks in advance


  2. #2
    Join Date
    Dec 2003
    Location
    San Diego, CA
    Posts
    153
    How about:
    Code:
    Sub GetMyName()
        Dim CurrentUserName As String
            CurrentUserName = Environ("Username")
        MsgBox CurrentUserName
    End Sub
    Hope that helps,

    Smitty

  3. #3
    Join Date
    Jan 2004
    Location
    Newcastle UK
    Posts
    10
    Smashin ... i knew there must be an easy answer to it ...

    Cheers


Posting Permissions

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