delete hyperlinks

P

Paul Breslin

Hello --

I have a document which is largely a copy and paste from the Internet.
There are a number of hyperlinks in the document that are underlined and I
would like to delete the links wholesale; that is, something like highlight
the whole document and then just delete the links all at once.
Anyone know how to do this?
Thanks,
Paul
 
C

Carol

To manually unlink the hyperlink fields, you can select them and press
Ctrl+Shift+F9. Note that if the selection includes any other fields,
such as SEQ fields (used by Word's caption feature) or REF fields
(used in cross-references), these will also be unlinked. To prevent
this from happening, you may want to try the following macro, which
will remove the hyperlinks, but preserve the hyperlinked text:

Do While ActiveDocument.Hyperlinks.Count > 0
ActiveDocument.Hyperlinks(1).Delete
Loop

If you are unfamiliar with macros, see the instructions at
http://gmayor.com/installing_macro.htm.
 
Q

q_q_anonymous

Paul said:
Hello --

I have a document which is largely a copy and paste from the Internet.
There are a number of hyperlinks in the document that are underlined and I
would like to delete the links wholesale; that is, something like highlight
the whole document and then just delete the links all at once.
Anyone know how to do this?
Thanks,
Paul

Solved it THE SOLUTION IS BEAUTIFUL!

you want to delete everything from

"http" up to Space

woudln't it be good if word supported regex. (regular expressinos that
can match patterns in strings (a sequence of characters) ).

well, it supports something easier than that
http://office.microsoft.com/en-au/assistance/ha010873051033.aspx

So, get the find and replace dialog box up
Click MORE, and check "use wildcards"
then in the find box type "http* " (without quotation marks).

that'l fidn them all. Write "" (without quotation marks) int the
replace box. so it'll find your links and repalce them with nothing.
Hence, removing them
 

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