You can list the files in the folder with the DIR function but unfortunately there is no easy way of the largest number. You can't specify a sort order.
Something like this could work, but it's a bit cumbersome.
You need to uncomment the iFileNo = line. I didn't have a number of files with numbers in front to test on. You can see what would be returned with the msgbox code. You would remove that for the actual calculation.
You may also need to put in some logic in case you have any other files in the folder that don't start with a number.
Bookmarks