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 » Page Layout
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Need to "find" an entire word and "replace" only part of it



 
 
Thread Tools Display Modes
  #1  
Old June 18th, 2004, 11:29 PM
VictorD
external usenet poster
 
Posts: n/a
Default Need to "find" an entire word and "replace" only part of it

Greetings,
This is easy for me to communicate wrong so I will try to be careful
in my description.

I have many documents that have a brand-name within it that needs to
be formatted with half of the word in an Arial font and half of the
word needs to be "Times Roman, Italicized". The first letter of the
word needs to be uppercase. This is constantly done wrong in documents
(because it is a pain) so documents are violating branding standards.

I would like to use Word to find all instances of the brand-name
(regardless of the formatting and replace them with properly formatted
text.

I can find how to format an entire word with a formatted text. I
cannot find how to do a combination of fonts within a word nor can I
figure-out how to make the first letter upper-case.

If I can figure this out I can make a macro and place a button on the
toolbar. It would be so cool.

~vic
  #2  
Old June 19th, 2004, 12:37 AM
garfield-n-odie
external usenet poster
 
Posts: n/a
Default Need to "find" an entire word and "replace" only part of it

It's possible to do this in two search-and-replace operations. It would
be easier to explain if I knew what the actual brandname was. I'm going
to assume that:
1. "Brandname" (all one word) is not a common word.
2. The "Brand" and "name" parts of "Brandname" are common words.
3. You want "Brand" to be Arial.
4. You want "name" to be Times New Roman italic.

Click on Find | Replace.

In the "Find what" box, type "brandname" (without quotes). In the
"Replace with" box, type "XXXXBrandname" (without quotes). Click on the
Format button in the Find and Replace dialog box. Click on Font | Font:
Times New Roman | Font style: Italic. Check the "Match case" box.
Click on Replace All.

In the "Find what" box, type "XXXXBrand" (without quotes). In the
"Replace with" box, type "Brand" (without quotes). Click on the Format
button in the Find and Replace dialog box. Click on Font | Font: Arial
| Font style: Regular. The "Match case" box should still be checked.
Click on Replace All.

Finished!

In this example, the XXXX is needed to turn the common word Brand into a
unique word XXXXBrand. The XXXX can be any string of a few characters
that do not appear elsewhere in the document.

To avoid this problem in new documents, you can add a formatted-text
Autocorrect entry to your normal.dot template so that every time someone
types brandname or Brandname, Word will automatically change it to
Brandname with Brand in Arial and name in TNR italic.


VictorD wrote:

Greetings,
This is easy for me to communicate wrong so I will try to be careful
in my description.

I have many documents that have a brand-name within it that needs to
be formatted with half of the word in an Arial font and half of the
word needs to be "Times Roman, Italicized". The first letter of the
word needs to be uppercase. This is constantly done wrong in documents
(because it is a pain) so documents are violating branding standards.

I would like to use Word to find all instances of the brand-name
(regardless of the formatting and replace them with properly formatted
text.

I can find how to format an entire word with a formatted text. I
cannot find how to do a combination of fonts within a word nor can I
figure-out how to make the first letter upper-case.

If I can figure this out I can make a macro and place a button on the
toolbar. It would be so cool.

~vic


  #3  
Old June 19th, 2004, 03:56 AM
Jezebel
external usenet poster
 
Posts: n/a
Default Need to "find" an entire word and "replace" only part of it

You might want to check with your legal people on this one. I've seen
lengthy legal opinions arguing that you *weaken* your brand ownership by
requiring specific formatting when the brand name is used as text. The
lawyers insisted that the branding standards should make a distinction
between the brand name used as a brand and the name used as a word. (I'm not
saying that this opinion is necessarily correct, only that I've seen it
argued more than once by major law firms.)


"VictorD" wrote in message
m...
Greetings,
This is easy for me to communicate wrong so I will try to be careful
in my description.

I have many documents that have a brand-name within it that needs to
be formatted with half of the word in an Arial font and half of the
word needs to be "Times Roman, Italicized". The first letter of the
word needs to be uppercase. This is constantly done wrong in documents
(because it is a pain) so documents are violating branding standards.

I would like to use Word to find all instances of the brand-name
(regardless of the formatting and replace them with properly formatted
text.

I can find how to format an entire word with a formatted text. I
cannot find how to do a combination of fonts within a word nor can I
figure-out how to make the first letter upper-case.

If I can figure this out I can make a macro and place a button on the
toolbar. It would be so cool.

~vic



  #4  
Old June 19th, 2004, 09:13 AM
Graham Mayor
external usenet poster
 
Posts: n/a
Default Need to "find" an entire word and "replace" only part of it

I think I might adopt a different approach.
Type the name and format it as required.
Copy the formatted text to the clipboard.
Search for the name
replace with the clipboard content (^c).

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




VictorD wrote:
Greetings,
This is easy for me to communicate wrong so I will try to be careful
in my description.

I have many documents that have a brand-name within it that needs to
be formatted with half of the word in an Arial font and half of the
word needs to be "Times Roman, Italicized". The first letter of the
word needs to be uppercase. This is constantly done wrong in documents
(because it is a pain) so documents are violating branding standards.

I would like to use Word to find all instances of the brand-name
(regardless of the formatting and replace them with properly formatted
text.

I can find how to format an entire word with a formatted text. I
cannot find how to do a combination of fonts within a word nor can I
figure-out how to make the first letter upper-case.

If I can figure this out I can make a macro and place a button on the
toolbar. It would be so cool.

~vic



  #6  
Old June 19th, 2004, 02:50 PM
VictorD
external usenet poster
 
Posts: n/a
Default Need to "find" an entire word and "replace" only part of it

Thanks all. I have tried the simpler approach that Greg provided as well as the "dual pass" approach from Garfiled-n-odie.

Here is my status:
When trying Greg's approach, I typed the entry on the top of the page and cut it to the clipboard, the did a "findhighlight all in document" then am pasting to relace all selected text.
the wrong font size unfortunatly pastes throughout the document. (understanding I would like to make a macro with this)

I was successful with the two pass approach from Garfiled-n-Odie but am having issues getting the macro to replicate my manual steps. This however is successfully adjusting the font size to the target.

Sincere thanks for the help you all have been. This seems like a no-big-deal thing but is a constant burden.
---
~Vic


"Greg Maxey" wrote:

Smart guy. :-)

--
Greg Maxey
A peer in "peer to peer" support
Rockledge, FL
To e-mail, edit out the "w...spam" in

Graham Mayor wrote:
I think I might adopt a different approach.
Type the name and format it as required.
Copy the formatted text to the clipboard.
Search for the name
replace with the clipboard content (^c).


VictorD wrote:
Greetings,
This is easy for me to communicate wrong so I will try to be careful
in my description.

I have many documents that have a brand-name within it that needs to
be formatted with half of the word in an Arial font and half of the
word needs to be "Times Roman, Italicized". The first letter of the
word needs to be uppercase. This is constantly done wrong in
documents (because it is a pain) so documents are violating branding
standards.

I would like to use Word to find all instances of the brand-name
(regardless of the formatting and replace them with properly
formatted text.

I can find how to format an entire word with a formatted text. I
cannot find how to do a combination of fonts within a word nor can I
figure-out how to make the first letter upper-case.

If I can figure this out I can make a macro and place a button on the
toolbar. It would be so cool.

~vic




  #7  
Old June 19th, 2004, 02:50 PM
VictorD
external usenet poster
 
Posts: n/a
Default Need to "find" an entire word and "replace" only part of it

Thanks all. I have tried the simpler approach that Greg provided as well as the "dual pass" approach from Garfiled-n-odie.

Here is my status:
When trying Greg's approach, I typed the entry on the top of the page and cut it to the clipboard, the did a "findhighlight all in document" then am pasting to relace all selected text.
the wrong font size unfortunatly pastes throughout the document. (understanding I would like to make a macro with this)

I was successful with the two pass approach from Garfiled-n-Odie but am having issues getting the macro to replicate my manual steps. This however is successfully adjusting the font size to the target.

Sincere thanks for the help you all have been. This seems like a no-big-deal thing but is a constant burden.
---
~Vic


"Greg Maxey" wrote:

Smart guy. :-)

--
Greg Maxey
A peer in "peer to peer" support
Rockledge, FL
To e-mail, edit out the "w...spam" in

Graham Mayor wrote:
I think I might adopt a different approach.
Type the name and format it as required.
Copy the formatted text to the clipboard.
Search for the name
replace with the clipboard content (^c).


VictorD wrote:
Greetings,
This is easy for me to communicate wrong so I will try to be careful
in my description.

I have many documents that have a brand-name within it that needs to
be formatted with half of the word in an Arial font and half of the
word needs to be "Times Roman, Italicized". The first letter of the
word needs to be uppercase. This is constantly done wrong in
documents (because it is a pain) so documents are violating branding
standards.

I would like to use Word to find all instances of the brand-name
(regardless of the formatting and replace them with properly
formatted text.

I can find how to format an entire word with a formatted text. I
cannot find how to do a combination of fonts within a word nor can I
figure-out how to make the first letter upper-case.

If I can figure this out I can make a macro and place a button on the
toolbar. It would be so cool.

~vic




  #8  
Old June 19th, 2004, 02:51 PM
VictorD
external usenet poster
 
Posts: n/a
Default Need to "find" an entire word and "replace" only part of it

Thanks all. I have tried the simpler approach that Greg provided as well as the "dual pass" approach from Garfiled-n-odie.

Here is my status:
When trying Greg's approach, I typed the entry on the top of the page and cut it to the clipboard, the did a "findhighlight all in document" then am pasting to relace all selected text.
the wrong font size unfortunatly pastes throughout the document. (understanding I would like to make a macro with this)

I was successful with the two pass approach from Garfiled-n-Odie but am having issues getting the macro to replicate my manual steps. This however is successfully adjusting the font size to the target.

Sincere thanks for the help you all have been. This seems like a no-big-deal thing but is a constant burden.
---
~Vic


---
"VictorD" wrote:

Greetings,
This is easy for me to communicate wrong so I will try to be careful
in my description.

I have many documents that have a brand-name within it that needs to
be formatted with half of the word in an Arial font and half of the
word needs to be "Times Roman, Italicized". The first letter of the
word needs to be uppercase. This is constantly done wrong in documents
(because it is a pain) so documents are violating branding standards.

I would like to use Word to find all instances of the brand-name
(regardless of the formatting and replace them with properly formatted
text.

I can find how to format an entire word with a formatted text. I
cannot find how to do a combination of fonts within a word nor can I
figure-out how to make the first letter upper-case.

If I can figure this out I can make a macro and place a button on the
toolbar. It would be so cool.

~vic

  #9  
Old June 19th, 2004, 08:29 PM
Suzanne S. Barnhill
external usenet poster
 
Posts: n/a
Default Need to "find" an entire word and "replace" only part of it

Actually, Graham's approach is by far the simplest. Perhaps that's the one
you meant?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"VictorD" wrote in message
...
Thanks all. I have tried the simpler approach that Greg provided as well

as the "dual pass" approach from Garfiled-n-odie.

Here is my status:
When trying Greg's approach, I typed the entry on the top of the page and

cut it to the clipboard, the did a "findhighlight all in document" then am
pasting to relace all selected text.
the wrong font size unfortunatly pastes throughout the document.

(understanding I would like to make a macro with this)

I was successful with the two pass approach from Garfiled-n-Odie but am

having issues getting the macro to replicate my manual steps. This however
is successfully adjusting the font size to the target.

Sincere thanks for the help you all have been. This seems like a

no-big-deal thing but is a constant burden.
---
~Vic


---
"VictorD" wrote:

Greetings,
This is easy for me to communicate wrong so I will try to be careful
in my description.

I have many documents that have a brand-name within it that needs to
be formatted with half of the word in an Arial font and half of the
word needs to be "Times Roman, Italicized". The first letter of the
word needs to be uppercase. This is constantly done wrong in documents
(because it is a pain) so documents are violating branding standards.

I would like to use Word to find all instances of the brand-name
(regardless of the formatting and replace them with properly formatted
text.

I can find how to format an entire word with a formatted text. I
cannot find how to do a combination of fonts within a word nor can I
figure-out how to make the first letter upper-case.

If I can figure this out I can make a macro and place a button on the
toolbar. It would be so cool.

~vic


  #10  
Old June 19th, 2004, 11:43 PM
VictorD
external usenet poster
 
Posts: n/a
Default Need to "find" an entire word and "replace" only part of it

Yes Susan you are correct. Any ideas how to get the font to paste correctly? If I put a formatted 11pt font on the clipboard, that is what it pastes. So it overwrites for instance a heading that may have a different font.

--
~Vic


"Suzanne S. Barnhill" wrote:

Actually, Graham's approach is by far the simplest. Perhaps that's the one
you meant?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"VictorD" wrote in message
...
Thanks all. I have tried the simpler approach that Greg provided as well

as the "dual pass" approach from Garfiled-n-odie.

Here is my status:
When trying Greg's approach, I typed the entry on the top of the page and

cut it to the clipboard, the did a "findhighlight all in document" then am
pasting to relace all selected text.
the wrong font size unfortunatly pastes throughout the document.

(understanding I would like to make a macro with this)

I was successful with the two pass approach from Garfiled-n-Odie but am

having issues getting the macro to replicate my manual steps. This however
is successfully adjusting the font size to the target.

Sincere thanks for the help you all have been. This seems like a

no-big-deal thing but is a constant burden.
---
~Vic


---
"VictorD" wrote:

Greetings,
This is easy for me to communicate wrong so I will try to be careful
in my description.

I have many documents that have a brand-name within it that needs to
be formatted with half of the word in an Arial font and half of the
word needs to be "Times Roman, Italicized". The first letter of the
word needs to be uppercase. This is constantly done wrong in documents
(because it is a pain) so documents are violating branding standards.

I would like to use Word to find all instances of the brand-name
(regardless of the formatting and replace them with properly formatted
text.

I can find how to format an entire word with a formatted text. I
cannot find how to do a combination of fonts within a word nor can I
figure-out how to make the first letter upper-case.

If I can figure this out I can make a macro and place a button on the
toolbar. It would be so cool.

~vic



 




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 05:22 AM.


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