OK. I have it.
The first is a calling routine; specify the path where you want to start (needs \ at the end). It will run through all files and folders below in that path.
It is generic and can be used by anyone for any similar all the files in the subfolders too operation. It calls the third macro to do the work on the files. The macro gets all the files and must select which ones to amend; I used a SELECT clause.
It has been a heavy thread. There are dozens of code clips around the read only the current folder but very few that parse the tree as this does. I hope others will find it valuable. (Post edited)
Bookmarks