Quote:
Originally Posted by Ulodesk
Engine, I am not familiar with the technique you mentioned, and it did not work for me (see attached), but it looks useful.
Questions:
1. What do you mean "loop"? Is this a macro function or a regular command I have never heard of?
2. In the attached, I styled two lines as Heading one, saved the doc to a txt file, opened a new Word docx, pasted the text in, ran Find and Replace with <:h1> in Find field and the Heading 1 style in Replace, and replaced all. Please explain what happened.
Thanks.
|
Looping is a common programming technique - go back to beginning and do again, just a little differently. It is also used in cross examination with good results.
Error as to paragraph styles: see next two posts
You need to identify the beginning and end of the replace area. i.e select the paragraph that begins with <:h1> and apply Heading 1 style. Macros to do this sort of thing need to be written rather than recorded.
Otherwise, you could bracket <:h1>the text<:h1> you want the style applied to and use WildCards to do the replace. I know this can be done, just don't have the experience to tell you how.
Find and Replace Using Wildcards by Graham Mayor