A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Removing a group of hypertext links or all hypertext links in a document



 
 
Thread Tools Display Modes
  #1  
Old November 8th, 2004, 05:34 PM
Terri Creagh
external usenet poster
 
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  
Old November 8th, 2004, 05:42 PM
Graham Mayor
external usenet poster
 
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  
Old November 8th, 2004, 05:48 PM
Jay Freedman
external usenet poster
 
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  
Old November 9th, 2004, 12:05 AM
Terri
external usenet poster
 
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  
Old November 9th, 2004, 01:49 AM
Jay Freedman
external usenet poster
 
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  
Old November 9th, 2004, 05:30 AM
Terri
external usenet poster
 
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






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing people from group email when sending email. Topster General Discussion 1 September 30th, 2004 07:08 PM
Group By Running & Setting Up Queries 3 August 5th, 2004 10:37 PM
Still having Web Page Pathing Problems / Relative Links show Netwo webmaster Powerpoint 27 July 15th, 2004 11:16 PM
Help Needed for Groups Please Paul Black General Discussion 15 June 21st, 2004 02:54 AM
Removing external links in Excel Tom Carnahan Links and Linking 1 February 23rd, 2004 09:26 AM


All times are GMT +1. The time now is 07:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.