I try to write a macro to unprotect all workbooks in a specific folder, however, the program run with error when the user key in a incorrect password.

How can I prevent this error by returning a "incorrect password" message to user?