Phil,
Use Edit>Replace.
Format your first instance of applesauce with the
hyperlink directed to the bookmark. Select the hyperlink
text and copy with CTRL+c. With Edit>Replace, type
applesause in the find what field. In the replace with
field put ^c (which represents the content of the
clipboard). Select replace all.
>-----Original Message-----
>My document reads:
[quoted text clipped - 15 lines]
>-Phil
>.
Hi Phil,
[..]
> I need all occurrences of the word "applesauce" to be replaced by
> hyperlinks (e.g. that transport the user to a bookmark in the
> document where "applesauce" is defined). All the hyperlinks will be
> the same.
>
> What's the fastest way to accomplish this replacement?
I'll throw in my "quicker" variant: instead of using the clipboard, use
an empty "replace" box and apply the "hyperlink" character style to it.
All in all, no big difference; you'll hit uppercase applesauces that
way, too (or: you won't change cases for any one you hit, actually).
Greetinx
.bob
..Word-MVP

Signature
/"\ ASCII Ribbon Campaign
\ /
X Against HTML
/ \ in e-mail & news
Greg Maxey - 19 Dec 2003 17:33 GMT
Robert,
I considered your method first, but in my testing the
hyperlink style is applied to the other instances of
applesauce but they did not point to the bookmark. Did
you do something different?
>-----Original Message-----
>Hi Phil,
[quoted text clipped - 17 lines]
>..bob
>...Word-MVP
Robert M. Franz (RMF) - 28 Dec 2003 17:08 GMT
Hi Greg (and Phil),
> Robert,
>
[quoted text clipped - 3 lines]
> you do something different?
> >-----Original Message-----
[..]
> >> I need all occurrences of the word "applesauce" to be
> >> replaced by hyperlinks (e.g. that transport the user to a
> >> bookmark in the document where "applesauce" is defined). All the
> >> hyperlinks will be the same.
Greg is right of course: I must have missed the parenthesis in the OP
(and been a bit distracted: without a target, what sense would a
hyperlink style make?). The style itself does not yield a target (not
even a field code, even if the text was an URI); there's no way Word
could guess we wanted to hyperlink to a bookmark here, hence it works as
should be expected and does not hyperlink anywhere.
Sorry if this has led to confusion!
Greetinx from good old Europe
.bob
..Word-MVP

Signature
/"\ ASCII Ribbon Campaign
\ /
X Against HTML
/ \ in e-mail & news