![]() |
|
#1
|
|||
|
|||
|
Hi folks, We have a bunch of documents with many hyperlinks in them. We now need to reuse these documents but without the hyperlinks. Currently I'm manually converting them to regular text by toggling the field codes and then finding "HYPERLINK," then hitting Ctrl+Shift+F9 to convert the field code to text. Then I find the next one and repeat. Is there a faster, easier way to do this? Thanks in advance. |
|
#2
|
||||
|
||||
|
Ctrl-A,then Ctrl-Shift-F9 will convert all fields to text.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#3
|
|||
|
|||
|
Thank you, but I should have been clearer. These documents also have dozens of other fields--TOCs, cross-references, table and figure numbers, etc. We can't just turn all fields to text.
|
|
#4
|
||||
|
||||
|
The following simple macro should do that
Code:
Sub Macro1()
Dim oFld As Field
For Each oFld In ActiveDocument.Fields
If oFld.Type = wdFieldHyperlink Then
oFld.Unlink
End If
Next oFld
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
#5
|
|||
|
|||
|
Thank you!
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Convert Folder paths to Hyperlinks
|
PhilS | Word | 3 | 01-04-2022 10:18 AM |
Convert many hyperlinks to the actual url, document-wide, not individually
|
enso | Word VBA | 4 | 02-25-2021 05:19 PM |
Convert html links into embedded hyperlinks
|
njcloud | Mail Merge | 23 | 02-04-2020 02:00 PM |
use of search/navigation bar - I want ordinary Find dialog
|
LeoLes | Word | 2 | 01-15-2017 08:16 AM |
| Convert Hyperlinks to ahref | dan88 | Word VBA | 2 | 05-09-2016 06:19 PM |