S
singeredel
I am trying to find a way to write code to unlink all the fields in a
document except a field that has an arithmetic formula in it. The particular
formula in this regard happens to appear in a table cell. The following code
unlinks ALL the fields in the document, including the field in the table cell
that has a formula in it. What am I doing wrong? Thanks for any help...
Dim af As Field
With ActiveDocument
For Each af In .Fields
If af.Type <> wdFieldFormula Then
af.Unlink
End If
Next af
End With
document except a field that has an arithmetic formula in it. The particular
formula in this regard happens to appear in a table cell. The following code
unlinks ALL the fields in the document, including the field in the table cell
that has a formula in it. What am I doing wrong? Thanks for any help...
Dim af As Field
With ActiveDocument
For Each af In .Fields
If af.Type <> wdFieldFormula Then
af.Unlink
End If
Next af
End With