Page 1 of 1

Help needed

Posted: Fri Apr 03, 2009 6:21 am
by alok_agarwal17
Hii

i have selected some text , and now i wanted to replace that selected text with ant HTML tag like <i>selectedtext</i>

so how can i do this , i am unable to write a macro for this.

thanks

alok

Posted: Sat Apr 04, 2009 10:55 am
by ak47wong
The easiest way is to use the Clip Library. Open the HTML Tags clip library and double-click Font - Italic. That's it!

Since you posted this in the Regular Expressions forum, another way to do it is to select the text, open the Replace dialog, enter the following values:

Find what: selectedtext
Replace with: <i>&</i>
[x] Regular expression

and click Replace.

Andrew