Your code is almost there. You just need to initialize `LatestDate` with an early date before comparing it in the loop. Add the following line before the loop:
LatestDate = DateSerial(1900, 1, 1)
This ensures that `LatestDate` starts with a date far in the past, allowing any file's date to be...