![]() |
|
#3
|
||||
|
||||
|
You could use a macro like:
Code:
Sub Demo()
Dim RngDoc As Range, RngOut As Range, Fld As Field
With ActiveDocument
.Range.InsertAfter vbCr & Chr(12)
Set RngDoc = .Range
RngDoc.End = RngDoc.End - 2
Set RngOut = .Characters.Last
For Each Fld In RngDoc.Fields
Select Case Fld.Type
Case wdFieldData, wdFieldDatabase, wdFieldDDE, wdFieldDDEAuto, wdFieldImport, _
wdFieldInclude, wdFieldIncludePicture, wdFieldIncludeText, wdFieldRefDoc
With RngOut
.InsertAfter vbCr
.Characters.Last.Text = Fld.LinkFormat.SourceFullName
End With
Case wdFieldHyperlink
With RngOut
.InsertAfter vbCr
.Characters.Last.FormattedText = Fld.Result.FormattedText
End With
End Select
Next
RngOut.Collapse wdCollapseStart
RngOut.Text = "External Links"
End With
End Sub
For PC macro installation & usage instructions, see: http://www.gmayor.com/installing_macro.htm For Mac macro installation & usage instructions, see: https://wordmvp.com/Mac/InstallMacro.html
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Appendix field switches
|
LadyBug679 | Word | 10 | 11-05-2015 03:39 PM |
| Appendix, Tables and Index | tanias | Word | 1 | 05-21-2014 11:08 AM |
| Automatic Appendix | darksupernova | Word | 8 | 03-02-2013 04:12 AM |
| Appendix Page Numbering | ffuhharas | Word | 1 | 02-09-2012 12:23 PM |
| No page number on appendix please | davidaexp1 | Word | 0 | 08-22-2006 06:19 PM |