![]() |
|
#2
|
||||
|
||||
|
Your code unlinks all fields as soon as it finds one that is not a cross-reference. To update & unlink fields other than cross-references, use code like:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim Fld As Field
For Each Fld In ActiveDocument.Fields
With Fld
If .Type <> wdFieldRef Then
.Update
.Unlink
End If
End With
Next
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cross reference is bad. | Leffken | Word | 1 | 06-09-2016 03:12 PM |
Totaling specific configuration selections that cross reference multiple fields (tricky)
|
lonniepoet | Excel Programming | 1 | 06-09-2016 09:54 AM |
prevent word fields from unlink
|
mktate | Word VBA | 5 | 03-13-2016 02:07 PM |
Reference number and cross reference for equation numbers to match the thesis format
|
wmac | Word | 1 | 05-14-2013 08:54 PM |
| manipulating cross-reference fields | _wim_ | Word | 0 | 12-10-2010 05:52 AM |