Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS-Word "Project Locked" Trying to edit macros

Status
Not open for further replies.

cwadams1955

Programmer
Jan 21, 2008
52
CA
The company I work for was recently "acquired" by another company, and I've inherited a set of document templates that the office managers want me to edit to replace the old company information with new. They're loaded with custom macros, and whenever I try to get into these macros, I get the "Project Locked" "Project is Unviewable" message box. Problem is, these things were created quite some time back by who knows who, so I have no access to the original creator OR the original documents, and three different VBA password recovery utilities tell me there is no password on the documents anyway. Trying to view the project properties results in the same error message. Anyone have any suggestions as to what I might do to get into these things? Thanks.
 
You MUST have the original template (.dot) file. The only way to see the code is to open the actual file.

If you can not get the original template files, you are simply out of luck. Documents created (cloned) from a template do not have the actual code.

Even if you have the original template file, the project is still "Unviewable". You MUST open the actual template file itself to view/action code modules.

You are not quite consistent:

"I've inherited a set of document templates "

"I have no access to the original creator OR the original documents"

If you have the document templates, then you can open them, and access the code modules. It sounds like you have documents, not templates.

Note: while the template (.dot) may (or may not) be password protected in the VBE, this does not make any document cloned from it be password protected. Which is why you are not finding any.


faq219-2884

Gerry
My paintings and sculpture
 
No, what I have are .dot files. But after I posted the question, I was checking the default templates in my Word setup here, and I see the same set of macro projects when I open Word without opening any of the three .dot template files I was pointed to as the ones that were needing to be edited. So I suspect that the office manager who pointed me to these is mistaken as to the location of the macros she needs worked on. I now believe the problem may be that these macros are loaded through the network login script, and that the reason I can't open them is that they're actually in use. I'm going to check that out and see what I can find.
 
It turns out that's the case - the macro projects that could not be opened to view are actually loaded with the login script, so they're in use whenever Word is loaded, regardless of the document. Clicking on Tools/Templates and Add-Ins showed those two templates loaded. Unchecking the boxes allowed me to open those .dot files individually and I was able to get into the macros from there. Thanks anyway.
 
1. "Clicking on Tools/Templates and Add-Ins showed those two templates loaded. " OK, then they are global templates, and yes, they can be put in Startup by login scripting. We do that.

2. You do NOT need to unload them (uncheck them in Add-ins) to open them. Just...open them, the files that is.

faq219-2884

Gerry
My paintings and sculpture
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top