Question: Create a VBA script that simulates validation of user-passwords. The script should: - prompt users for a password. - length of the password entered is
Create a VBA script that simulates validation of user-passwords.
The script should:
- prompt users for a password.
- length of the password entered is at least 8 characters.
- first character of the password is an UpperCase letter.
- password contains at least one of the numbers 3, 7, 8, or 9.
- prompt for passwords until the user enters a valid password or the user makes 5 unsuccessful attempts.
Display a warning message if there are 5 attempts, otherwise Display a string that consists of the length of the password concatenated with the password.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
