Howdy all! I'm attempting to write a code which will be able to load a file and tell me who were the last several users to open the file. There isn't really any restriction on the type of file, as I will need to check a wide variety of files which currently reside in a particular folder.
The code below is what I'm currently using to grab each file. However, I'm at a loss as to how to check who last accessed the file. To be honest, I'm not even certain it's possible with Excel 2003 macros to check the last few users to open the file.
TIA,
BD
The code below is what I'm currently using to grab each file. However, I'm at a loss as to how to check who last accessed the file. To be honest, I'm not even certain it's possible with Excel 2003 macros to check the last few users to open the file.
Code:
Set fso = CreateObject("Scripting.FileSystemObject")
Set UpFold = fso.GetFolder(CurDir)
Set UpFile = UpFold.Files
For Each Item In UpFile
Set fFile = Item
Next
Set UpFold = Nothing
Set UpFile = Nothing
Set fFile = Nothing
TIA,
BD