A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Need help with Search & Replace wildcards



 
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2004, 02:03 PM
Ivaylo
external usenet poster
 
Posts: n/a
Default 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  
Old June 2nd, 2004, 02:28 PM
Graham Mayor
external usenet poster
 
Posts: n/a
Default 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  
Old June 3rd, 2004, 10:17 AM
Ivaylo
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.