What is the fastest way to... (hyperlink)

P

Phil

My document reads:

Xxx xxx xxxxxxxxxx xxx applesauce xxxxxxxx xxx x xxxxx xx xx x
applesauce xx xxxxx x xxx xxxx xx xx x. Xxx applesauce xxxx xxx xx
xx xxxxx xxx xx x xxxxxx applesauce xxx xxx x xx xxxxxx xxxxxxx.
Xxxxxxxx xxx applesauce xxxxxxxx xxx x xxxxx xx xx x
applesauce xx xxxxx x xxx xxxx xx xx x. Xxx applesauce xxxx xxx xx
xx xxxxx xxx xx x xxxxxx applesauce xxx xxx x xx xxxxxx xxxxxxx.


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?

Thanks very much,
-Phil
 
G

Greg Maxey

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.
 
R

Robert M. Franz (RMF)

Hi Phil,

Phil wrote:
[..]
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
 
G

Greg Maxey

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,

Phil wrote:
[..]
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
--
/"\ ASCII Ribbon Campaign
\ /
X Against HTML
/ \ in e-mail & news
.
 
R

Robert M. Franz (RMF)

Hi Greg (and Phil),

Greg said:
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----- [..]
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top