+ Reply to Thread
Results 1 to 3 of 3

Getting Username from a file

  1. #1
    Forum Contributor
    Join Date
    06-21-2004
    Posts
    106

    Unhappy Getting Username from a file

    I wish to get the "last modified" and the user who modified a file. This is what I have:

    Sub GetAttributes()
    LM = FileDateTime("C:\blAH BLAH BLAH.xls")
    Range("A1") = LM
    End Sub

    Can someone help me with the username piece? Much appreciated.

  2. #2

    Re: Getting Username from a file

    I use

    RunUser = Environ("username")

    This will pull the username they use to sign into their laptop.


    pikapika13 wrote:
    > I wish to get the "last modified" and the user who modified a file.
    > This is what I have:
    >
    > Sub GetAttributes()
    > LM = FileDateTime("C:\blAH BLAH BLAH.xls")
    > Range("A1") = LM
    > End Sub
    >
    > Can someone help me with the username piece? Much appreciated.
    >
    >
    > --
    > pikapika13
    > ------------------------------------------------------------------------
    > pikapika13's Profile: http://www.excelforum.com/member.php...o&userid=10892
    > View this thread: http://www.excelforum.com/showthread...hreadid=561182



  3. #3
    Bob Phillips
    Guest

    Re: Getting Username from a file

    see other thread

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    <[email protected]> wrote in message
    news:[email protected]...
    > I use
    >
    > RunUser = Environ("username")
    >
    > This will pull the username they use to sign into their laptop.
    >
    >
    > pikapika13 wrote:
    > > I wish to get the "last modified" and the user who modified a file.
    > > This is what I have:
    > >
    > > Sub GetAttributes()
    > > LM = FileDateTime("C:\blAH BLAH BLAH.xls")
    > > Range("A1") = LM
    > > End Sub
    > >
    > > Can someone help me with the username piece? Much appreciated.
    > >
    > >
    > > --
    > > pikapika13
    > > ------------------------------------------------------------------------
    > > pikapika13's Profile:

    http://www.excelforum.com/member.php...o&userid=10892
    > > View this thread:

    http://www.excelforum.com/showthread...hreadid=561182
    >




+ 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