![]() |
#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!
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
PhilS | Word | 3 | 01-04-2022 10:18 AM |
![]() |
enso | Word VBA | 4 | 02-25-2021 05:19 PM |
![]() |
njcloud | Mail Merge | 23 | 02-04-2020 02:00 PM |
![]() |
LeoLes | Word | 2 | 01-15-2017 08:16 AM |
Convert Hyperlinks to ahref | dan88 | Word VBA | 2 | 05-09-2016 06:19 PM |