Reply
 
Thread Tools Display Modes
  #1   Report Post  
Terri Creagh
 
Posts: n/a
Default Removing a group of hypertext links or all hypertext links in a document

I am trying to remove hypertext links from a whole column of a Word table.
If I select the column and then try to do it through 'Edit - Links' , the
'Links' option is grayed out. If I right click on the group of links, the
'remove hypertext link' option does not come up.



Also, is there any way to remove all hypertext links in an entire Word
document if the 'Edit - Links' command is grayed out?



Thank you.

Terri


  #2   Report Post  
Graham Mayor
 
Posts: n/a
Default

If you want to remove the Hyperlink completely use the replace function.
Select 'More' and replace Hyperlink style with nothing. (Don't put any text
in the find or replace boxes).

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Terri Creagh wrote:
I am trying to remove hypertext links from a whole column of a Word
table. If I select the column and then try to do it through 'Edit -
Links' , the 'Links' option is grayed out. If I right click on the
group of links, the 'remove hypertext link' option does not come up.



Also, is there any way to remove all hypertext links in an entire Word
document if the 'Edit - Links' command is grayed out?



Thank you.

Terri



  #3   Report Post  
Jay Freedman
 
Posts: n/a
Default

Hi Terri,

This will work in tables, text, or anywhere else:

First, display field codes in place of field results, by pressing Alt+F9.
The hyperlinks will all turn into something like
{ HYPERLINK "http://word.mvps.org/FAQs/index.htm"}

(Note: if you don't see quotes around the URL, then the newsgroup posting
mechanism has reformatted it. You'll see quotes in the field code.)

Select the part of the document that you want to remove hyperlinks from. If
you want to remove hyperlinks from the entire document, just put the cursor
at the beginning.

Now open the Edit Replace dialog. Put this in the Find What box:

^19 HYPERLINK

The ^19 represents the left bracket of the code. You do need the space
between the 9 and the H. Leave the Replace With box empty and click Replace
All. If you had some text selected, Word will ask whether to continue
searching; click No.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

Terri Creagh wrote:
I am trying to remove hypertext links from a whole column of a Word
table. If I select the column and then try to do it through 'Edit -
Links' , the 'Links' option is grayed out. If I right click on the
group of links, the 'remove hypertext link' option does not come up.



Also, is there any way to remove all hypertext links in an entire Word
document if the 'Edit - Links' command is grayed out?



Thank you.

Terri



  #4   Report Post  
Terri
 
Posts: n/a
Default

Thanks for your answer. I tried that, and it gets rid of the text as well
as the URL to which the text is linked. I think I was probably not clear in
how I explained the problem. What I want to do is break the link. I do not
want to remove the text that is linked. In other words, when the cursor is
put on a company name that I have in my document, clicking on that name will
go to a specific URL that is linked to that company name. I do not want to
delete the company name, but I do want to break the link.

I hope that is a little clearer explanation. Can this be done?
Thank you.
Terri


"Jay Freedman" wrote in message
...
Hi Terri,

This will work in tables, text, or anywhere else:

First, display field codes in place of field results, by pressing Alt+F9.
The hyperlinks will all turn into something like
{ HYPERLINK "http://word.mvps.org/FAQs/index.htm"}

(Note: if you don't see quotes around the URL, then the newsgroup posting
mechanism has reformatted it. You'll see quotes in the field code.)

Select the part of the document that you want to remove hyperlinks from.

If
you want to remove hyperlinks from the entire document, just put the

cursor
at the beginning.

Now open the Edit Replace dialog. Put this in the Find What box:

^19 HYPERLINK

The ^19 represents the left bracket of the code. You do need the space
between the 9 and the H. Leave the Replace With box empty and click

Replace
All. If you had some text selected, Word will ask whether to continue
searching; click No.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

Terri Creagh wrote:
I am trying to remove hypertext links from a whole column of a Word
table. If I select the column and then try to do it through 'Edit -
Links' , the 'Links' option is grayed out. If I right click on the
group of links, the 'remove hypertext link' option does not come up.



Also, is there any way to remove all hypertext links in an entire Word
document if the 'Edit - Links' command is grayed out?



Thank you.

Terri





  #5   Report Post  
Jay Freedman
 
Posts: n/a
Default

Hi Terri,

OK, that does make a difference.

Here are two alternatives:

- If the hyperlinks are the *only* fields in the document body
(remember that fields include dates, times, page numbers other than
ones in headers/footers, and other things), or if there are other
fields but you don't mind converting them to plain text so they'll
never update again, you can select all (Ctrl+A) and unlink fields
(Ctrl+Shift+F9).

- If there are other fields and you need to be selective about
changing only the hyperlinks, use this small macro:

Sub UnlinkHyperlinks()
Dim nHL As Long
For nHL = 1 To ActiveDocument.Hyperlinks.Count
ActiveDocument.Hyperlinks(1).Delete
Next nHL
End Sub

If you need instructions to use the macro, see
http://www.gmayor.com/installing_macro.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

On Tue, 09 Nov 2004 00:05:35 GMT, "Terri"
wrote:

Thanks for your answer. I tried that, and it gets rid of the text as well
as the URL to which the text is linked. I think I was probably not clear in
how I explained the problem. What I want to do is break the link. I do not
want to remove the text that is linked. In other words, when the cursor is
put on a company name that I have in my document, clicking on that name will
go to a specific URL that is linked to that company name. I do not want to
delete the company name, but I do want to break the link.

I hope that is a little clearer explanation. Can this be done?
Thank you.
Terri


"Jay Freedman" wrote in message
...
Hi Terri,

This will work in tables, text, or anywhere else:

First, display field codes in place of field results, by pressing Alt+F9.
The hyperlinks will all turn into something like
{ HYPERLINK "http://word.mvps.org/FAQs/index.htm"}

(Note: if you don't see quotes around the URL, then the newsgroup posting
mechanism has reformatted it. You'll see quotes in the field code.)

Select the part of the document that you want to remove hyperlinks from.

If
you want to remove hyperlinks from the entire document, just put the

cursor
at the beginning.

Now open the Edit Replace dialog. Put this in the Find What box:

^19 HYPERLINK

The ^19 represents the left bracket of the code. You do need the space
between the 9 and the H. Leave the Replace With box empty and click

Replace
All. If you had some text selected, Word will ask whether to continue
searching; click No.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

Terri Creagh wrote:
I am trying to remove hypertext links from a whole column of a Word
table. If I select the column and then try to do it through 'Edit -
Links' , the 'Links' option is grayed out. If I right click on the
group of links, the 'remove hypertext link' option does not come up.



Also, is there any way to remove all hypertext links in an entire Word
document if the 'Edit - Links' command is grayed out?



Thank you.

Terri







  #6   Report Post  
Terri
 
Posts: n/a
Default

Thank you so much, Jay. That works beautifully!
Terri

"Jay Freedman" wrote in message
...
Hi Terri,

OK, that does make a difference.

Here are two alternatives:

- If the hyperlinks are the *only* fields in the document body
(remember that fields include dates, times, page numbers other than
ones in headers/footers, and other things), or if there are other
fields but you don't mind converting them to plain text so they'll
never update again, you can select all (Ctrl+A) and unlink fields
(Ctrl+Shift+F9).

- If there are other fields and you need to be selective about
changing only the hyperlinks, use this small macro:

Sub UnlinkHyperlinks()
Dim nHL As Long
For nHL = 1 To ActiveDocument.Hyperlinks.Count
ActiveDocument.Hyperlinks(1).Delete
Next nHL
End Sub

If you need instructions to use the macro, see
http://www.gmayor.com/installing_macro.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

On Tue, 09 Nov 2004 00:05:35 GMT, "Terri"
wrote:

Thanks for your answer. I tried that, and it gets rid of the text as

well
as the URL to which the text is linked. I think I was probably not clear

in
how I explained the problem. What I want to do is break the link. I do

not
want to remove the text that is linked. In other words, when the cursor

is
put on a company name that I have in my document, clicking on that name

will
go to a specific URL that is linked to that company name. I do not want

to
delete the company name, but I do want to break the link.

I hope that is a little clearer explanation. Can this be done?
Thank you.
Terri


"Jay Freedman" wrote in message
...
Hi Terri,

This will work in tables, text, or anywhere else:

First, display field codes in place of field results, by pressing

Alt+F9.
The hyperlinks will all turn into something like
{ HYPERLINK "http://word.mvps.org/FAQs/index.htm"}

(Note: if you don't see quotes around the URL, then the newsgroup

posting
mechanism has reformatted it. You'll see quotes in the field code.)

Select the part of the document that you want to remove hyperlinks

from.
If
you want to remove hyperlinks from the entire document, just put the

cursor
at the beginning.

Now open the Edit Replace dialog. Put this in the Find What box:

^19 HYPERLINK

The ^19 represents the left bracket of the code. You do need the space
between the 9 and the H. Leave the Replace With box empty and click

Replace
All. If you had some text selected, Word will ask whether to continue
searching; click No.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

Terri Creagh wrote:
I am trying to remove hypertext links from a whole column of a Word
table. If I select the column and then try to do it through 'Edit -
Links' , the 'Links' option is grayed out. If I right click on the
group of links, the 'remove hypertext link' option does not come up.



Also, is there any way to remove all hypertext links in an entire

Word
document if the 'Edit - Links' command is grayed out?



Thank you.

Terri






Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing document link from Work menu -em português no fim da mens Hernani Nitolo Filho Microsoft Word Help 3 April 13th 23 02:08 PM
Removing reviewer names from a Word XP Document Marky Microsoft Word Help 3 November 30th 07 05:02 PM
Editing links to excel in form-protected word document Laura Microsoft Word Help 13 December 16th 04 12:57 AM
Include links (icons) in MS Word: will it affect the document size Peter Vidal Microsoft Word Help 1 December 11th 04 10:56 PM
how do i change manage css links to start of document salliedee Microsoft Word Help 1 November 26th 04 10:05 PM


All times are GMT +1. The time now is 08:42 AM.

Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"