Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
Using EditFind to find and replace hyperlinks
I have a large document with many hyperlinks. I would like to replace all of
the hyperlinks in that document and keep the text. I cannot find a way to do this using EditFind. Is there a way? If not, is there any other way? I am using Microsoft Office Word 2003 fully patched and undated. |
#2
Posted to microsoft.public.word.newusers
|
|||
|
|||
Using EditFind to find and replace hyperlinks
If you have field codes displayed, you can search for ^19 HYPERLINK.
-- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA http://word.mvps.org "Guybo" wrote in message ... I have a large document with many hyperlinks. I would like to replace all of the hyperlinks in that document and keep the text. I cannot find a way to do this using EditFind. Is there a way? If not, is there any other way? I am using Microsoft Office Word 2003 fully patched and undated. |
#3
Posted to microsoft.public.word.newusers
|
|||
|
|||
Using EditFind to find and replace hyperlinks
This workks fine for removing the hyperlinks, but it does not leave the
text. How can I delete the hyperlink and leave the text? Guy "Suzanne S. Barnhill" wrote in message ... If you have field codes displayed, you can search for ^19 HYPERLINK. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA http://word.mvps.org "Guybo" wrote in message ... I have a large document with many hyperlinks. I would like to replace all of the hyperlinks in that document and keep the text. I cannot find a way to do this using EditFind. Is there a way? If not, is there any other way? I am using Microsoft Office Word 2003 fully patched and undated. |
#4
Posted to microsoft.public.word.newusers
|
|||
|
|||
Using EditFind to find and replace hyperlinks
The two macros below will unlink Hyperlinks (which leaves the text) or
delete them which doesn't. Sub UnlinkHyperlinks() Dim oField As Field For Each oField In ActiveDocument.Fields If oField.Type = wdFieldHyperlink Then oField.Unlink End If Next Set oField = Nothing End Sub Sub DeleteHyperlinks() Dim oHlink As Hyperlink, i As Long For i = ActiveDocument.Hyperlinks.Count To 1 Step -1 ActiveDocument.Hyperlinks(i).Delete Next i End Sub http://www.gmayor.com/installing_macro.htm -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Guybo wrote: This workks fine for removing the hyperlinks, but it does not leave the text. How can I delete the hyperlink and leave the text? Guy "Suzanne S. Barnhill" wrote in message ... If you have field codes displayed, you can search for ^19 HYPERLINK. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA http://word.mvps.org "Guybo" wrote in message ... I have a large document with many hyperlinks. I would like to replace all of the hyperlinks in that document and keep the text. I cannot find a way to do this using EditFind. Is there a way? If not, is there any other way? I am using Microsoft Office Word 2003 fully patched and undated. |
#5
Posted to microsoft.public.word.newusers
|
|||
|
|||
Using EditFind to find and replace hyperlinks
I didn't specify what to do when you find the hyperlink! If you are
replacing it with nothing or deleting it, then yes, it's gone. But you can equally well do this: 1. Find the first hyperlink. 2. Close the Find dialog. 3. With the hyperlink selected, press Ctrl+Shift+F9 to unlink it. 4. Use the Find Next browse arrow at the bottom of the vertical scroll bar to find the next hyperlink. 5. Press F4 to unlink it. 6. Repeat steps 4 and 5 until you don't find any more. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA http://word.mvps.org "Guybo" wrote in message ... This workks fine for removing the hyperlinks, but it does not leave the text. How can I delete the hyperlink and leave the text? Guy "Suzanne S. Barnhill" wrote in message ... If you have field codes displayed, you can search for ^19 HYPERLINK. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA http://word.mvps.org "Guybo" wrote in message ... I have a large document with many hyperlinks. I would like to replace all of the hyperlinks in that document and keep the text. I cannot find a way to do this using EditFind. Is there a way? If not, is there any other way? I am using Microsoft Office Word 2003 fully patched and undated. |
#6
Posted to microsoft.public.word.newusers
|
|||
|
|||
Using EditFind to find and replace hyperlinks
Select all
Ctrl+Shift+F9 "Guybo" wrote in message ... This workks fine for removing the hyperlinks, but it does not leave the text. How can I delete the hyperlink and leave the text? Guy "Suzanne S. Barnhill" wrote in message ... If you have field codes displayed, you can search for ^19 HYPERLINK. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA http://word.mvps.org "Guybo" wrote in message ... I have a large document with many hyperlinks. I would like to replace all of the hyperlinks in that document and keep the text. I cannot find a way to do this using EditFind. Is there a way? If not, is there any other way? I am using Microsoft Office Word 2003 fully patched and undated. |
#7
Posted to microsoft.public.word.newusers
|
|||
|
|||
Using EditFind to find and replace hyperlinks
Ctrl+Shft+F9 (Unlink Fields) is fine if you only have unwanted Hyperlinks in
your document, but unlinking all other fields may not be what is wanted. Even a humble TOC will become text and will lose its GoToHeading and update functions. -- Terry Farrell - MSWord MVP "Stephen Larivee" wrote in message ... Select all Ctrl+Shift+F9 "Guybo" wrote in message ... This workks fine for removing the hyperlinks, but it does not leave the text. How can I delete the hyperlink and leave the text? Guy "Suzanne S. Barnhill" wrote in message ... If you have field codes displayed, you can search for ^19 HYPERLINK. -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA http://word.mvps.org "Guybo" wrote in message ... I have a large document with many hyperlinks. I would like to replace all of the hyperlinks in that document and keep the text. I cannot find a way to do this using EditFind. Is there a way? If not, is there any other way? I am using Microsoft Office Word 2003 fully patched and undated. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do i turn off the edit/find/replace feature? | Microsoft Word Help | |||
where do I find the :find & replace when I need to edit in word | New Users | |||
How to find text in Word in reverse direction: edit find previous | Microsoft Word Help | |||
Find multiple characters in one find using MSword find/replace | Microsoft Word Help | |||
Find and replace 100 hyperlinks?? | Microsoft Word Help |