Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
Updating Word Templates
I'm a software developer and use Access extensively. My knowledge of
VBA is pretty good. so when I was approached to undertake a project to modify some Word (2003) templates, which included forms and VBA code, I felt it would be no problem. My problem is how to save these templates. Afer opning the .dot file, modifying some VBA code, and also making changes within the document (Bookmarks, fonts, etc.) it seems impossible to savethis .dot file and retain all the changes. If I do a file/save from within the VBA code, it saves all the code changes, but none of the formatting changes in the document. On the other hand, if I do a file/save from the document, it will save all the document formatting changes but all the code and forms are gone. I've checked off to "automatically update document styles and also tried Save All by holding down the shift key I"m at a loss now what else to try Any suggestions??? |
#2
Posted to microsoft.public.word.newusers
|
|||
|
|||
Updating Word Templates
Hi Richard
Let's see if we've got this right: - you have a template (the .dot) file - you used File New, chose your template and Word created a new document (.doc file) from the template. You then edited code in the .dot file and saved it. And you edited the styles and content in the .doc file, and saved it. Have I got the story straight? If so, then what you're seeing is exactly what should happen. Once a document is created from a template, it loses all direct association with its parent template. So changing formatting in a document has no effect at all on its parent template. For more information, see: What is the relationship between a Word document and its template? http://www.ShaunaKelly.com/word/temp...ons\index.html If you want to edit the template, then you have to use File Open, open the template (not a document created from it) and make your changes in the template. Then, the *next* document that is created from the template will reflect the changes you've made. Hope this helps. Shauna Kelly. Microsoft MVP. http://www.shaunakelly.com/word "Richard" wrote in message ups.com... I'm a software developer and use Access extensively. My knowledge of VBA is pretty good. so when I was approached to undertake a project to modify some Word (2003) templates, which included forms and VBA code, I felt it would be no problem. My problem is how to save these templates. Afer opning the .dot file, modifying some VBA code, and also making changes within the document (Bookmarks, fonts, etc.) it seems impossible to savethis .dot file and retain all the changes. If I do a file/save from within the VBA code, it saves all the code changes, but none of the formatting changes in the document. On the other hand, if I do a file/save from the document, it will save all the document formatting changes but all the code and forms are gone. I've checked off to "automatically update document styles and also tried Save All by holding down the shift key I"m at a loss now what else to try Any suggestions??? |
#3
Posted to microsoft.public.word.newusers
|
|||
|
|||
Updating Word Templates
Thanks for the help.
Well, I just figured it out. It seems that I was opening the template by double-clicking on the template (while holding down the shift key to bypass execution of code). It seems that I was opening a document, not the template. When I open the template from within Word then it opens as a template and I have no problem - everything gets saved. What a relief. Such a simple solution. Thanks for the help. |
#4
Posted to microsoft.public.word.newusers
|
|||
|
|||
Updating Word Templates
The default action for templates (.dot files) is New rather than Open. You
can right-click on the template and choose Open instead. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "Richard" wrote in message oups.com... Thanks for the help. Well, I just figured it out. It seems that I was opening the template by double-clicking on the template (while holding down the shift key to bypass execution of code). It seems that I was opening a document, not the template. When I open the template from within Word then it opens as a template and I have no problem - everything gets saved. What a relief. Such a simple solution. Thanks for the help. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Word 97 in Windows XP to maintain formatting | Microsoft Word Help | |||
How can Word display full path of a file in the title bar? | Microsoft Word Help | |||
Does Word have a QuickCorrect/Quick Word option like WordPerfect? | New Users | |||
In Word, how do I surpress headers and footers on page 2 | Microsoft Word Help | |||
In Word, how can I see all files (*.*) in "save as"? | New Users |