Hi,
I created a budget template file for users to fill in which uses the "xlveryhidden" function on a worksheet that holds the data that will be extracted and rolled-up to get the total company figures. The VBA project for this template was locked with a password.
I have come across a problem whereby I cannot unlock the VBA Project on some of the files and am getting a "Project is unviewable" message and on some files, I cannot run the sheet1.visible = xlsheetvisible code. A run time error with "Method Unprotect of object_worksheet failed message".
Right now, I cannot view the VBA code for a project, and when I can, on some of them, I cannot unhide the worksheet that was hidden using the xlveryhidden property.
Have any of you experienced this issue? I am currently running on Excel 2007 with the files saved as xl 97-2003. I have tried opening the code using MS Excel 2002 and have the same problem.
I created a budget template file for users to fill in which uses the "xlveryhidden" function on a worksheet that holds the data that will be extracted and rolled-up to get the total company figures. The VBA project for this template was locked with a password.
I have come across a problem whereby I cannot unlock the VBA Project on some of the files and am getting a "Project is unviewable" message and on some files, I cannot run the sheet1.visible = xlsheetvisible code. A run time error with "Method Unprotect of object_worksheet failed message".
Right now, I cannot view the VBA code for a project, and when I can, on some of them, I cannot unhide the worksheet that was hidden using the xlveryhidden property.
Have any of you experienced this issue? I am currently running on Excel 2007 with the files saved as xl 97-2003. I have tried opening the code using MS Excel 2002 and have the same problem.