Finally, the "post-fiddle" is to restore the em-dashes that were in the captions, by doing a global replace of the string "EM-DASH" with the actual em-dash character "^+". Then you do the separator change as described above. "EM-DASH") that doesn't ever occur in any caption's text. The "pre-fiddle" is to do a global find/replace across captions, replacing the em-dash ("^+") with some other string (e.g. If it does, then you'll need to do a pre- and post- "fiddle" to ensure these em-dashes are not touched by the global replace above. For example, in the picture above you can see that I want to find the word Microsoft in my document and replace it with the word Apple. Then, in the Replace With box enter the text you want to replace your text with. NOTE: This presumes that em-dash does not appear in the caption text anywhere. In the Find What box, enter the text or phrase that you want to find in your Word document. Do a find/replace searching for special character "em-dash" (^+) in style CAPTION, replacing with " ". FIGURE), select the other labels one by one and repeat this process. If you have other labels in use in the document (e.g. This will replace all separators in captions for the selected label in the CAPTION Window. Go to REFERENCES | INSERT CAPTION, then click on NUMBERING and replace the SEPARATOR "." with "EM-DASH". To globally replace the separator "." with " " (space) in such captions, take two steps: This means these captions will have been (automatically) created in CAPTION style. It sounds like Beth may have created captions throughout the document using INSERT CAPTION (hence the presence of field codes). And this may not be quite what Beth was looking for. Update the field codes.Ĭoming in late on this, probably way too late for Beth (sorry Beth). Select-All and re-toggle the field codes. Add any further custom processing to the macro VBA. It's usually better to go the macro route when finding fields because, as you say, the find algorithm that Word uses doesn't work the way you might hope with fields.īut if you know exactly what the fields contain, you can specify a search pattern that will probably work (however not in wildcard mode).įor example, if you want to look for figure number field pairs such as brackets.