removing hyperlinks

M

mk carson

I've copied and pasted a bunch of names and dates from webpages into a
number of Word 2004 for Mac documents and it's created a mess of
hyperlinks!

How can I get rid of them all? I know I can go in and delete each individual
hyperlink. But there are dozens and dozens at this point in a number of
docs. Is there a way to:

1. Remove all the hyperlinks from a Word document?

2. Set a preference or something so hyperlinks aren't created by a simple
pasting in of a word or two from a website?

Many thanks!
 
F

Fredrik Wahlgren

I've copied and pasted a bunch of names and dates from webpages into a
number of Word 2004 for Mac documents and it's created a mess of
hyperlinks!

How can I get rid of them all? I know I can go in and delete each
individual
hyperlink. But there are dozens and dozens at this point in a number of
docs. Is there a way to:

1. Remove all the hyperlinks from a Word document?

2. Set a preference or something so hyperlinks aren't created by a simple
pasting in of a word or two from a website?

Many thanks!

Here's what I found at
http://www.j-walk.com/ss/excel/usertips/tip031.htm

Removing or avoiding automatic hyperlinks
You may have discovered that Excel 2000 supports automatic cell hyperlinks.
Whenever you type something that resembles a URL or an e-mail address into a
cell, this feature automatically converts the text into a clickable
hyperlink. But what if you don't want to create a hyperlink?

If you use Excel 2000, you're out of luck. There is no way to turn this
potentially annoying feature off. But you can, however, override it. If
Excel creates a hyperlink from your cell entry, click the Undo button (or
press Ctrl-Z) to restore the cell's contents to normal text. Or, you can
precede the cell entry with an apostrophe.

Note: If you're using Excel 2002, you can turn automatic hyperlinks on or
off in the AutoCorrect dialog box

Surprisingly, Excel doesn't provide a direct way to remove all hyperlinks on
a worksheet. In fact, the only way to accomplish this is one cell at a time:
Activate the cell that contains the hyperlink, right-click, and then select
Hyperlink, Remove Hyperlink. Unfortunately, this command is available only
when you have selected a single cell. To quickly deactivate all hyperlinks,
you need to use a macro.

To create the macro, press Alt-F11 to activate the Visual Basic Editor,
select Insert, Module to insert a new VBA module into your project, and then
enter the following code:

Sub ZapHyperlinks()
Cells.Hyperlinks.Delete
End SubWhen you execute the ZapHyperlinks macro, all hyperlinks on the
active sheet are deleted and replaced with normal text.

/ Fredrik
 
D

Dayo Mitchell

I don't think you can set a preference to prevent this happening, though you
could use Paste | Special, paste as unformatted text to prevent it (Word
2004 may have a simpler way to access the "paste as unformatted text"
command, check Help).

After the fact:
Hyperlinks are actually fields. If you don't have any other fields in your
document, you can select all and UnlinkFields to convert them to plain text.
The default shortcut for UnlinkFields should be command-shift-F9 (or you
could apply it manually to each hyperlink individually)

If you do have other types of fields in the doc, you can use a macro to
convert only the hyperlinks, but I don't think Fredrik's will work, because
it is written for Excel and Word 2004 might not recognize the "Cells."
command. Post back if you need that, I don't have it handy.
 
H

hyperlinker

Hey,

I'm not sure if you found a solution to your problem or not but I had a
similar problem and I worked around it to get the results I believe you were
looking for.

I copied info from a website and pasted it into Excel (2000) and among other
things, hyperlinks were copied to the worksheet. Like you, I found that I
could eliminate hyperlinks individually but I had 156 entries and that would
have taken longer than I wanted it to.

I opened Microsoft Word and made a table with 1 column and 156 rows. I then
went into Excel and copied the 156 hyperlinked entries. Next, I went back
into Word and highlighted the 156 rows and selected "paste special" from the
edit menu. I selected "unformatted text" and clicked ok. The information
pasted into Word did not contain hyperlinks. I then copied the
non-hyperlinked entries from Word and pasted them into Excel. Then I deleted
the annoying hyperlinked data in Excel and achieved the result I was shooting
for.

Hope this helps you or someone else out!
 
H

hyperlinker

Hey,

I'm not sure if you found a solution to your problem or not but I had a
similar problem and I worked around it to get the results I believe you were
looking for.

I copied info from a website and pasted it into Excel (2000) and among other
things, hyperlinks were copied to the worksheet. Like you, I found that I
could eliminate hyperlinks individually but I had 156 entries and that would
have taken longer than I wanted it to.

I opened Microsoft Word and made a table with 1 column and 156 rows. I then
went into Excel and copied the 156 hyperlinked entries. Next, I went back
into Word and highlighted the 156 rows and selected "paste special" from the
edit menu. I selected "unformatted text" and clicked ok. The information
pasted into Word did not contain hyperlinks. I then copied the
non-hyperlinked entries from Word and pasted them into Excel. Then I deleted
the annoying hyperlinked data in Excel and achieved the result I was shooting
for.

Hope this helps you or someone else out!
 
J

John McGhie

Oh! Now that's a very neat way around the problem :)

I have a macro that gets the hyperlinks out of a document, because I did not
think of your method :)

Cheers


Hey,

I'm not sure if you found a solution to your problem or not but I had a
similar problem and I worked around it to get the results I believe you were
looking for.

I copied info from a website and pasted it into Excel (2000) and among other
things, hyperlinks were copied to the worksheet. Like you, I found that I
could eliminate hyperlinks individually but I had 156 entries and that would
have taken longer than I wanted it to.

I opened Microsoft Word and made a table with 1 column and 156 rows. I then
went into Excel and copied the 156 hyperlinked entries. Next, I went back
into Word and highlighted the 156 rows and selected "paste special" from the
edit menu. I selected "unformatted text" and clicked ok. The information
pasted into Word did not contain hyperlinks. I then copied the
non-hyperlinked entries from Word and pasted them into Excel. Then I deleted
the annoying hyperlinked data in Excel and achieved the result I was shooting
for.

Hope this helps you or someone else out!

--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie <[email protected]>
Consultant Technical Writer
Sydney, Australia +61 4 1209 1410
 

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