Consider the following scenario. You open a workbook that you helped protect by using Information Rights Management (IRM) in Microsoft Office Excel 2003. Then, you try to unprotect the IRM-protected workbook programmatically by using the
Unprotect method. In this scenario, the workbook is not unprotected. If you try to help reprotect the workbook programmatically by using the
Protect method, the workbook is not reprotected. Additionally, you receive one or more of the following error messages.
Error message 1
Error message 2
Protect
Run-time error '1004':
Application-defined or object-defined error
Error message 3
Unprotect
Run-time error '1004':
Unprotect method of Worksheet class failed