The Problem:
We have a standard template for our manuals that has a style for every occasion and a few dozen styles for the stockpot. So far, so good. But now we've acquired one of our competitors and need to "translate" all their documents from their three templates to our template. And yes, you've guessed it: I get to do the "translation."
The Solution:
If you know VBA, you can write a quick macro to make this change. But if you don't know VBA, you can make the changes easily enough by using Find and Replace to replace each style from their templates with the corresponding style from your template. If you record a macro of yourself performing the replacements, you can then run it on other documents.
To replace one style with another style:
-
Make a two-column list of the styles you want to change and what you want to change them to. You can do this on paper, or in a Word table if you find that easier.
-
Open a document based on one of the other company's templates.
-
Choose Tools » Templates and Add-Ins, click the Attach button, select your company's standard manual template, and click the Open button. Check the "Automatically update document styles" box, and then click the OK button.
-
Choose Edit » Replace (or press Ctrl+H) to display the Replace tab of the Find and Replace dialog box.
-
If the "Find what" box contains text, press Delete to delete it.
-
Click the More button if the dialog box doesn't include the Search Options section.
-
If there are any formatting details under the "Find what" box, click the No Formatting button to remove them.
-
Click the Format button and choose Style from the shortcut menu to display the Find Style dialog box (see Figure 3-11). Click the first of the styles you want to replace, and then click the OK button.
Figure 3-11. Find and Replace provides an easy way of changing one set of styles to another throughout a document.
-
Press Tab to select the "Replace with" box. If the box contains text, press Delete. If there are formatting details under it, click the No Formatting button to remove them.
-
Click the Format button and choose Style from the shortcut menu to display the Replace Style dialog box. Choose the corresponding replacement style, and then click the OK button.
-
Click the Replace All button to replace all instances of the style under the "Find what" box with the style under the "Replace with" box.
-
Select the next search style and the next replacement style, and repeat the replacement. Do this for all the remaining styles you wish to replace.