If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Need help with Search & Replace wildcards
Hi all,
I have a very long Word document which I have to reformat in certain way. Some of the changes include: (1) applying I /I tags to all italics phrases (not just words), (something like this: sample phrase (formated in italics) -- Isample phrase/I); (2) applying a a href="bword://wordword1/a tag to some words I want to specify. (3) applying a font color="blue"word/font to some words I want to specify. What bothers me is that I don't know which search and replace strings I have to use since I'm not very familiar with wildcards. What is important is that the search must affect whole phrases with such formatting criteria not just single words. Can you help me with search & replace strings or a macro? Thanks a lot |
#2
|
|||
|
|||
Need help with Search & Replace wildcards
These are not wildcard searches
(1) Press CTRL+I (Italic) with the cursor in the search box and replace with I^&\I (2) Put the word in the search box and replace with a href="bword://word^&/a (3) Put the word in the search box and replace with font color="blue"^&/font - if you want the text to appear blue in the document then in addition add format font blue to the replace string For background on wildcard searches - see http://word.mvps.org/FAQs/General/UsingWildcards.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site www.mvps.org/word Ivaylo wrote: Hi all, I have a very long Word document which I have to reformat in certain way. Some of the changes include: (1) applying I /I tags to all italics phrases (not just words), (something like this: sample phrase (formated in italics) -- Isample phrase/I); (2) applying a a href="bword://wordword1/a tag to some words I want to specify. (3) applying a font color="blue"word/font to some words I want to specify. What bothers me is that I don't know which search and replace strings I have to use since I'm not very familiar with wildcards. What is important is that the search must affect whole phrases with such formatting criteria not just single words. Can you help me with search & replace strings or a macro? Thanks a lot |
#3
|
|||
|
|||
Need help with Search & Replace wildcards
Thank you very much, Graham,
It solved my problems perfectly. Ivaylo -----Original Message----- These are not wildcard searches (1) Press CTRL+I (Italic) with the cursor in the search box and replace with I^&\I (2) Put the word in the search box and replace with a href="bword://word^&/a (3) Put the word in the search box and replace with font color="blue"^&/font - if you want the text to appear blue in the document then in addition add format font blue to the replace string For background on wildcard searches - see http://word.mvps.org/FAQs/General/UsingWildcards.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site www.mvps.org/word Ivaylo wrote: Hi all, I have a very long Word document which I have to reformat in certain way. Some of the changes include: (1) applying I /I tags to all italics phrases (not just words), (something like this: sample phrase (formated in italics) -- Isample phrase/I); (2) applying a a href="bword://wordword1/a tag to some words I want to specify. (3) applying a font color="blue"word/font to some words I want to specify. What bothers me is that I don't know which search and replace strings I have to use since I'm not very familiar with wildcards. What is important is that the search must affect whole phrases with such formatting criteria not just single words. Can you help me with search & replace strings or a macro? Thanks a lot . |
Thread Tools | |
Display Modes | |
|
|