The attached is an example of vba code to browse for a folder.
I like this method since it doesn't depend on other API modules to be imported.
Also coded:
1. The ImportOrExport button will be enabled or disabled depending on if a folder is selected.
2. 'Open Folder' button added so you can easily open the selected folder.
Also Note: The browse coding itself is gotten from the website mentioned in the comments. I am not the author of the browse code and cannot verify the author in the comments as the original (I just did the other coding.) I believe there is similar code on Allan Browne's website.