epants
Programmer
- Jul 1, 2008
- 4
I'm trying to edit and debug macros in a template. I find if I open the template directly and open the visual basic editor I can edit the macros in the template no problem. But the moment the template is added to a word document the visual basic editor refuses me access to the macros and shows the error message, "Project Locked: Project is unviewable".
Now editing the macros is no problem if I don't add the file as a template to the document that is using it, but I can't add breakpoints or step through the code since once I add it as a template to the document I'm locked out of it.
I'm using Microsoft Office 2007 and the documents I'm editing were created with an earlier version of Office (03?). I have a friend who has Office 03 and doesn't have the problem I'm having: He is able to edit and debug the macros in the template while it is loaded as a template to a document.
Does anyone know of a workaround for this problem?
Now editing the macros is no problem if I don't add the file as a template to the document that is using it, but I can't add breakpoints or step through the code since once I add it as a template to the document I'm locked out of it.
I'm using Microsoft Office 2007 and the documents I'm editing were created with an earlier version of Office (03?). I have a friend who has Office 03 and doesn't have the problem I'm having: He is able to edit and debug the macros in the template while it is loaded as a template to a document.
Does anyone know of a workaround for this problem?