Re: find highlighting, replace with shading

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



This choice on the Format button is not available and is grayed out:
....select Border to open the Borders & Shading dialog.

Also I do have to do this for 25 docs so maybe a macro would be better.

Thanks.

--
Alan


"Jay Freedman" wrote:

First define a character style that uses the default paragraph font
settings and adds only the shading. To do this:

- Open the New Style dialog (from Format > Style in older versions of
Word, or from the Styles and Formatting task pane in newer versions).
- Set the style type to Character, enter a name, and check the Add to
Template box.
- Click the Format button and select Border to open the Borders &
Shading dialog. Click the Shading tab.
- Select the color you want; if necessary, click the More Colors
button and use the color picker.
- Click OK in each dialog.

Now you can use Find&Replace to find highlighting and replace with the
character style. Click the More button in the Replace dialog. With the
cursor in the Find What box, click Format > Highlight. With the cursor
in the Replace With box, click Format > Highlight twice (so the label
under the box says "Not Highlight") and Format > Style > choose your
character style. Click the Replace All button.

You could write a macro to do it, but it would be overkill if only one
document is involved. Note that, because of a bug, you _cannot_ use
the macro recorder to record the actions in the Replace dialog -- it
simply won't record anything involving formatting. :-b See
http://www.word.mvps.org/FAQs/MacrosVBA/ModifyRecordedMacro.htm.

A macro would be necessary if the original document contains more than
one color of highlighting and you want to replace only the bright
green. If that's the case, post back for more help.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

On Sat, 7 Oct 2006 08:47:01 -0700, adgorn
<adgorn@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

1)I have document with multiple words highlighted in bright green. My users
can't read printed versions. One sent me an exmple of a shading that she
would like me to replace the bright green with. How do I replace all
instances of bright green highlighting with this particular shading? (btw How
do you deterrmine some kind of code for this shade she sent me??)

2) Word find/replace can search for highlighting. Can it also search for
shading?

Thanks.

.


Quantcast