Thread: [Solved] Field removal from template
View Single Post
 
Old 10-18-2011, 03:28 AM
Phelony Phelony is offline Windows XP Office 2003
Novice
 
Join Date: Oct 2011
Posts: 2
Phelony is on a distinguished road
Default

Fixed it myself

Dim doc As Document
Dim fld As Field

Set doc = ActiveDocument

For Each fld In doc.Fields

fld.Select
‘this is the field type, you can adjust this to suit the fields you are using, but they have to be
‘named individually, this might mean running several variations of this macro.

If fld.Type = wdFieldIncludeText Then

fld.Locked = True

End If

Next

Set fld = Nothing

Set doc = Nothing
Reply With Quote