It depends what the macro does whether it will work or not. Some functions
are only available when the form is unlocked, so your code needs to unlock
and relock the form eg
Dim bProtected As Boolean
'Unprotect the file
If ActiveDocument.ProtectionType <> wdNoProtection Then
bProtected = True
ActiveDocument.Unprotect Password:=""
End If
'do your stuff
'Reprotect the document.
If bProtected = True Then
ActiveDocument.Protect _
Type:=wdAllowOnlyFormFields, NoReset:=True, Password:=""
End If

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Word 2003
> My macros do not work when triggered by exiting a field while my form
> is protected.
Colin4 - 25 Jul 2007 14:34 GMT
Graham - thank you for your extreemly prompt response - I will try your
solution this week - thanks again!
> It depends what the macro does whether it will work or not. Some functions
> are only available when the form is unlocked, so your code needs to unlock
[quoted text clipped - 19 lines]
> > My macros do not work when triggered by exiting a field while my form
> > is protected.
Graham Mayor - 25 Jul 2007 15:19 GMT
You are welcome :)
Note that if the form is password protected you will have to supply the
password between the quotes at both places. The macro as written assumes no
password.

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Graham - thank you for your extreemly prompt response - I will try
> your solution this week - thanks again!
[quoted text clipped - 30 lines]
>>> My macros do not work when triggered by exiting a field while my
>>> form is protected.