This error occurs when you use Lock VBA Project (simple VBA protection). Remove the password of your VBA project before compiling the workbook with XLS Padlock. This password is useless since the project will be marked as locked and no password will be prompted. Alternatively, use a shorter password or switch to the Prevent access to VBA editor option.