Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-01-2017, 06:35 PM
Charles Kenyon Charles Kenyon is offline Moving body text from old files to new files (based on template) Windows 10 Moving body text from old files to new files (based on template) Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,454
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

What you want to do may be able to be done. It will depend on the ability of a macro to determine what it is that gets copied. Headers and footers are stored in section marks. There is one at the end of every document, but may be more in the middle. Sections / Headers and Footers in Microsoft Word (Ribbon Versions) If everything is one section, it should be relatively easy. That is not my forte' though.

However, I would suggest a paradigm shift for your new templates: use modular components stored in one or two locations. Build your templates using those components in a way that lets them be updated automatically by changes in the base.

I would suggest AutoText entries holding your letterhead, etc. Store those in a Global Template.

Then use an AutoText field to put the components into the templates. Finally, put an AutoNew macro in the templates to either lock or unlink the AutoText fields. Next time, you will need to only change the AutoText entries. All of the templates will update automatically when they are used to create new documents.
Automated Boilerplate Using Microsoft Word

I use something a bit more complex, in that I have a single document that contains parts marked by bookmarks. An AutoNew macro in each template calls them into the new document at a bookmarked location in the template. AutoText is easier but I had this set up before I realized that.



For documents based on my letterhead template, an Autonew macro tests the new document's template's name against a document variable that contains the name of the template that has the up-to-date material. If the document is based on any template other than that base one, the material is copied from the base one into the new document, replacing existing headers, footers, and styles. Because of the styles, I think that is a bit better than AutoText, but not a great deal better.
Reply With Quote
  #2  
Old 05-01-2017, 07:04 PM
vagabond's Avatar
vagabond vagabond is offline Moving body text from old files to new files (based on template) Windows 7 64bit Moving body text from old files to new files (based on template) Office 2013
Novice
Moving body text from old files to new files (based on template)
 
Join Date: May 2017
Location: The Neutral Zone, Third Rock & Sun
Posts: 2
vagabond is on a distinguished road
Default

Quote:
Originally Posted by Charles Kenyon View Post
However, I would suggest a paradigm shift for your new templates: use modular components stored in one or two locations. Build your templates using those components in a way that lets them be updated automatically by changes in the base.
The only issues I see, in general, are offline use and decentralized use. These documents are medical policies and procedures, medical protocols, operations guidelines, etc.

Most will only receive the PDF version of the finished product; not the original Word.

That said, is it safe to assume that, in the creation of the PDF from the master document, all relevant sections are saved in and not linked to the final document? Does that even make sense? (I am fairly comfortable in Word, and office in general; but by no means an expert)

I am going now to check out the reference made. Thanks!!

Jason
Reply With Quote
  #3  
Old 05-02-2017, 05:05 AM
Charles Kenyon Charles Kenyon is offline Moving body text from old files to new files (based on template) Windows 10 Moving body text from old files to new files (based on template) Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,454
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by vagabond View Post
The only issues I see, in general, are offline use and decentralized use. These documents are medical policies and procedures, medical protocols, operations guidelines, etc.
This should not be a problem. Again, if AutoText fields are used, those fields should be automatically unlinked by a macro. Thus, the actual content will be in the documuments but the field will be in the template. The global template should be copied/updated to each user's Word Startup Folder as a part of the network login procedure.

Quote:
Originally Posted by vagabond View Post
Most will only receive the PDF version of the finished product; not the original Word.
For this, you do not even need to unlink or lock the AutoText fields, when the PDF is made, it will contain your content. That PDF should be your local archival copy, though, not the Word file unless the fields are unlinked.

Quote:
Originally Posted by vagabond View Post

That said, is it safe to assume that, in the creation of the PDF from the master document, all relevant sections are saved in and not linked to the final document? Does that even make sense? (I am fairly comfortable in Word, and office in general; but by no means an expert)

I am going now to check out the reference made. Thanks!!

Jason
If you use AutoText and the AutoText field, the content of the field will be linked to the AutoText container unless and until you break that link. This is not reflected in PDF versions, which would contain the content.

If you use a macro to copy components from a source template, those components become part of the new document.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to find/replace text in many word files - but text is in embedded word files semple.13 Word VBA 5 11-03-2015 01:20 PM
Moving body text from old files to new files (based on template) Moving Multiple Hyperlinked Files around cole790 Word 1 12-08-2013 03:55 PM
Merging pst files and moving to NAS drive riteoh Outlook 0 10-02-2012 05:20 AM
Moving body text from old files to new files (based on template) Moving files from one template to another Stephen0352 Word 4 03-05-2012 01:29 AM
moving data files g48dd Outlook 2 06-17-2011 01:18 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:43 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft