Replace <b>…</b> with bold in MS Word with macros

2

1

I have seen the posting for Replace bold text with in MS Word without macros.

How can I do the opposite? How can I open up a .txt file that has html tags in it like

here is <i>italic</i> text here and then I also have <b>bold text</b> over here

and convert ALL occurrences of <i>...</i> to italicized text and <b>...</b> to bold text?

ferd berfel

Posted 2010-12-07T22:32:07.643

Reputation: 21

Answers

3

You'll need to make sure you have the full Search/Replace dialogue box open.

Tick the Use Wildcards checkbox.

Find what: \<b\>(*)\</b\>

Replace with: \1

Then click the Format button and select bold.

Then replace all.

You can then do a similar procedure for italics.

For an explanation of Word's wildcards, see this article.

Mike Fitzpatrick

Posted 2010-12-07T22:32:07.643

Reputation: 15 062

Thank you so much! did not know about that feature! – ferd berfel – 2010-12-09T20:53:30.507