Hi DaveFish,
In vba:
ActiveDocument.Fields.Unlink
will unlink all fields in the body of the document. Different code is needed to process headers, footers, shapes, TOCs etc as well. A fully-fledged macro to do this is:
Sub UnlinkAllFields()
Dim TrkStatus As Boolean ' Track Changes flag
Dim oRange As Word.Range ' All Range objects - includes ranges in the body, headers, footers & shapes
Dim TOC As TableOfContents ' Table of Contents Object
Dim TOA As TableOfAuthorities ' Table of Authorities Object
Dim TOF As TableOfFigures ' Table of Figures Object
With ActiveDocument
' Store current Track Changes status, then switch off
TrkStatus = .TrackRevisions
.TrackRevisions = False
' Loop through all range objects and update
For Each oRange In .StoryRanges
Do
oRange.Fields.Unlink
Set oRange = oRange.NextStoryRange
Loop Until oRange Is Nothing
Next
' Loop through TOCs and update
For Each TOC In .TablesOfContents
TOC.Unlink
Next
' Loop through TOAs and update
For Each TOA In .TablesOfAuthorities
TOA.Unlink
Next
' Loop through TOFs and update
For Each TOF In .TablesOfFigures
TOF.Unlink
Next
' Restore original Track Changes status
.TrackRevisions = TrkStatus
End With
End Sub
Cheers