Getting Username from a file

P

pikapika13

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
 
E

erikrthorne

I use

RunUser = Environ("username")

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

Bob Phillips

see other thread

--
HTH

Bob Phillips

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

I use

RunUser = Environ("username")

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top