Hello mso3,
The attached workbook has a UserForm, Standard VBA Module and a Class Module. All of these provide a user interface for selecting the folder and file types to be deleted.
I know this is a lot more that what you asked for. Deleting files requires safeguards to prevent accidental deletion of files. A simple dialog box can not provide that protection.
You can add more file types to the UserForm if needed. If you are unsure how to do this, let me know and I can guide through the process.
Bookmarks