Share via

deleting cross-reference fields

Anonymous
2012-04-27T16:34:16+00:00

In a WORD 2010 document, is there a way to delete all cross-reference fields at one time, while preserving the text?  thanks.

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Jay Freedman 207.7K Reputation points Volunteer Moderator
2012-04-27T18:46:20+00:00

Use this macro (see http://www.gmayor.com/installing_macro.htm if needed):

Sub x()

    Dim fld As Field

    For Each fld In ActiveDocument.Fields

        If fld.Type = wdFieldRef Then

            fld.Unlink

        End If

    Next

End Sub

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful