Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.newusers
Richard
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.newusers
Shauna Kelly
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.newusers
Richard
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.word.newusers
Suzanne S. Barnhill
 
Posts: n/a
Default 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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 97 in Windows XP to maintain formatting Charlie''s Word VBA questions Microsoft Word Help 22 May 20th 23 08:51 PM
How can Word display full path of a file in the title bar? SAsif Microsoft Word Help 1 January 26th 06 04:32 PM
Does Word have a QuickCorrect/Quick Word option like WordPerfect? CW New Users 2 December 20th 05 05:54 PM
In Word, how do I surpress headers and footers on page 2 Bill Microsoft Word Help 1 December 15th 05 06:13 PM
In Word, how can I see all files (*.*) in "save as"? citizen53 New Users 8 April 4th 05 04:56 PM


All times are GMT +1. The time now is 10:39 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"