Is there a way to watch a file in VBA (which is essentially VB6), so that I know when the file has been modified? — similar to this only I don’t want to know when a file is unused, just when its modified.
The answers I’ve found have recommended using “FileSystemWatcher” and the Win32 API “FindFirstChangeNotification”. I can’t figure out how to use these though, any idea?
Okay, I put together a solution that is able to detect file system changes, in VBA (VB6).
Copy and paste this sub near the above, it is called automatically if needed to initialize the global vars.