Hey, you saved my day. Thanks.
One comment, though: I added the handle of the FolderDialog as a parameter. The title is not always the standard text, and just searching for the ControlID did not work well. Note: needs to be replaced at the bottom when clicking ok as well.
Note2: there are dialogs which enable/disable 'ok' based on selected content; will do an error check for that as well
But apart from that - great work !