View Single Post
 
Old 10-14-2015, 05:53 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

For each formfield you want to trigger the unlinking with, add the line:
FmFld.ExitMacro = "Unlink"
after the last existing line referencing that formfield. Supplement that with the following macro:
Code:
Sub Unlink()
With ActiveDocument
  If .ProtectionType <> wdNoProtection Then
    .Unprotect Password:=Pwd
  End If
  .Fields.Unlink
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote