+ Reply to Thread
Results 1 to 5 of 5

How to identify operating system user in excel?

  1. #1
    Sarita
    Guest

    How to identify operating system user in excel?

    By default, I would like to populate a cell in a excel sheet with the
    operating system user id, with the person who opened the excel file. Is
    there a way to do this? I would appreciate any help. Thanks. Sarita.

  2. #2
    sebastienm
    Guest

    RE: How to identify operating system user in excel?

    Hi,
    Check at the Environ Function
    Environ("username") returns the name of the os user.
    --
    Regards,
    Sébastien


    "Sarita" wrote:

    > By default, I would like to populate a cell in a excel sheet with the
    > operating system user id, with the person who opened the excel file. Is
    > there a way to do this? I would appreciate any help. Thanks. Sarita.


  3. #3
    Norman Jones
    Guest

    Re: How to identify operating system user in excel?

    Hi Sarita,

    Possibly:

    With Sheets(1).Range("A1")
    Range("A1").Value = Application.OperatingSystem
    Range("A2").Value = Environ("Username")
    End With


    ---
    Regards,
    Norman



    "Sarita" <[email protected]> wrote in message
    news:[email protected]...
    > By default, I would like to populate a cell in a excel sheet with the
    > operating system user id, with the person who opened the excel file. Is
    > there a way to do this? I would appreciate any help. Thanks. Sarita.




  4. #4
    Sarita
    Guest

    RE: How to identify operating system user in excel?

    It works. Thank you so much. -- Sarita.

    "sebastienm" wrote:

    > Hi,
    > Check at the Environ Function
    > Environ("username") returns the name of the os user.
    > --
    > Regards,
    > Sébastien
    >
    >
    > "Sarita" wrote:
    >
    > > By default, I would like to populate a cell in a excel sheet with the
    > > operating system user id, with the person who opened the excel file. Is
    > > there a way to do this? I would appreciate any help. Thanks. Sarita.


  5. #5
    Sarita
    Guest

    Re: How to identify operating system user in excel?

    It works. Thank you so much. -- Sarita.

    "Norman Jones" wrote:

    > Hi Sarita,
    >
    > Possibly:
    >
    > With Sheets(1).Range("A1")
    > Range("A1").Value = Application.OperatingSystem
    > Range("A2").Value = Environ("Username")
    > End With
    >
    >
    > ---
    > Regards,
    > Norman
    >
    >
    >
    > "Sarita" <[email protected]> wrote in message
    > news:[email protected]...
    > > By default, I would like to populate a cell in a excel sheet with the
    > > operating system user id, with the person who opened the excel file. Is
    > > there a way to do this? I would appreciate any help. Thanks. Sarita.

    >
    >
    >


+ 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