2008-04-08, 03:56 #1
- Join Date
- Jan 2001
- Sydney, Australia, New South Wales, Australia
- Thanked 4 Times in 4 Posts
Unavailable template - problem on sve (2000)
I have a Word document sent to me from someone else.
The document template that the document is based on (as reported by Tools>Templates and Add-ins) is not available to me.
In my understanding, that's not a problem as Word inherits styles etc from the template at document creation time, but after that it's not used (correct me if I'm wrong).
I can save the document to another location under a new name no problem.
However, if I open a VBA Immediate window, and execute:
I get a Run-time error '5180' Word cannot open this document template
Why am I getting an 'open' error when I'm saving?
Why does this problem only show when I save via VBA and not under a normal save?
(Should I post this question to the VBA forum?)
Thanks for any ideas.
Subscribe to our Windows Secrets Newsletter - It's Free!
Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!
+ Get this BONUS — free!
Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!
2008-04-08, 08:04 #2
- Join Date
- Mar 2002
- Thanked 16 Times in 16 Posts
Re: Unavailable template - problem on sve (2000)
I have no idea why that happens. Is it important, apart from satisfying your curiosity?
You're correct about the styles, except if the check box "Automatically update document styles" has been ticked in the Templates and Add-Ins dialog, but that would only be a problem when the document is opened, not when it's saved.
(No need to post this in the VBA forum)