Solution
Yes, there is a way to do this using the ActiveX functions.

Here
Password refers to a password that may be applied to an excel workbook. Whereas
WriteResPassword refers to a password that may be applied to a specific sheet.
The password to this excel document was set to "123" which should be changed accordingly.