Error 5180 Word Cannot open document template
Posted on 2016-10-13
I use a macro to change a template. This allows me to quickly hide certain styles containing information that my target audience does not need to see, without changing the actual contents of the document (I have another macro to change it back). It works fine, and looks something like this:
.UpdateStylesOnOpen = True
.AttachedTemplate = "Comments"
My problem is that, using Word 2013, it complains that the macro is not located in my 'Documents' directory. If I move the .doc file to the Documents directory it works properly, but I do not want my Documents directory cluttered up with a bunch of .dot(m) files. That, I assume, is partly why older versions of Word used a Templates directory.
I looked at another page and followed instructions to tell Word (using Windows 7, in my case) where such a directory would be [ File > Options > Save, and then put the address into the 'Default personal templates' location box], but that doesn't seem to work.
How can I get Word, and hopefully other Office programs, to look in the right place for templates?