Verify Password Used to Protect the Worksheet

Contents
[ ]

The Protection.verify_password method returns true if the specified password matches the password used to protect the given worksheet and false if the specified password does not match. The following piece of code uses the Protection.verify_password method in conjunction with the Protection.is_protected_with_password property to detect password protection and verify the password.