+ Reply to Thread
Results 1 to 2 of 2

How to capture user ID in Excel macro?

  1. #1
    Ivan
    Guest

    How to capture user ID in Excel macro?

    Dear all,

    I have an Excel macro program which uses ADO connection. It connects to our
    AS/400 database. When the program connects to the AS/400 system for the first
    time after the program is opened, it prompts a AS/400 login dialogue box and
    then the user keys in his/her user name and password. If I want to capture
    the user name from the AS/400 login dialogue box, then how to do it? How to
    write the code in Excel macro? Is it possible?
    Thanks in advance!

    Ivan

  2. #2
    Bob Phillips
    Guest

    Re: How to capture user ID in Excel macro?

    Don't know about capturing it from the dialog box, but this returns the
    login user id

    environ("UserName")

    --
    HTH

    Bob Phillips

    "Ivan" <[email protected]> wrote in message
    news:[email protected]...
    > Dear all,
    >
    > I have an Excel macro program which uses ADO connection. It connects to

    our
    > AS/400 database. When the program connects to the AS/400 system for the

    first
    > time after the program is opened, it prompts a AS/400 login dialogue box

    and
    > then the user keys in his/her user name and password. If I want to capture
    > the user name from the AS/400 login dialogue box, then how to do it? How

    to
    > write the code in Excel macro? Is it possible?
    > Thanks in advance!
    >
    > Ivan




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1