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 -- pikapika1 ----------------------------------------------------------------------- pikapika13's Profile: http://www.excelforum.com/member.php...fo&userid=1089 View this thread: http://www.excelforum.com/showthread.php?threadid=56118 |
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 |
Getting Username from a file
see other thread
-- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) wrote in message oups.com... 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 |
All times are GMT +1. The time now is 01:51 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com