View Single Post
 
Old 03-13-2016, 08:47 AM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,429
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

Do the templates have names?

Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
If ActiveDocument.AttachedTemplate.Name = "Name of the template I don't want to unlink fields in.dotm" Then
'don't unlink fields
Else
Unlink Fields
End If
lbl_Exit:
Exit Sub

End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote