Excel VBA set a password in the following steps:
1. Right-click on any worksheet, select VBAProject Properties;
2. In the new dialog total, select "Protection" tab:
3. Check to see locked, enter the password.
1. Right-click on any worksheet, select VBAProject Properties;
2. In the new dialog total, select "Protection" tab:
3. Check to see locked, enter the password.