ExcelSheetProtection
Microsoft Excel macro that enables a sheet only if the file is opened on a specific computer
In this example the password to access to the code inside the Excel file is: password
To enable the development mode in Excel use this tutorial:
https://www.youtube.com/watch?v=KHO5NIcZAc4
If you want to add this script to your Excel file don't forget to protect the code with a password: