Follow the below steps to unlock Excel file password
Step 1: First of all open the Excel file that needs to be unlocked, then press the Alt + F11 to open VBA window.
Step 2: Now choose the option that says Insert followed by Module.
Step 3: When the general window pops up that's where you enter the VBA code.
Step 4: Click on "Run" button (or press F5 key) to run it.
Step 5: Within a few moments, the code will crack the password of the worksheet and you should be able to see a small message window with the password of the worksheet. You may write this down on a piece of paper and use it to unlock your worksheet.