View Single Post
 
Old 10-23-2013, 08:48 PM
Charles Kenyon Charles Kenyon is offline Windows Vista Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,464
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 Ulodesk View Post
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

Last edited by Charles Kenyon; 10-24-2013 at 12:25 AM.
Reply With Quote