You can download an add-in from my web site that will will handle the folder processing, and can be used with a custom process. The custom process macro needs to be in a specific format, and the macro you have quoted is not yet up to that task, but it could be modified - though the variable value would have to be better described.