You have to unprotect the form, edit the header/footer then reprotect it. To
prevent losing data already in the form fields use the NoReset parameter.
You'll need to provide the password in code or leave the Password parameter
off in which case the user will be prompted for a password. The
section-specific protect/unprotect settings should persist without your
having to specify them again.
To unprotect:
ActiveDocument.Unprotect Password:=""
To protect with NoReset:
ActiveDocument.Protect _
Type:=wdAllowOnlyFormFields, _
NoReset:=True, _
Password:=""
> How can I edit a header or footer in an online document protected for forms?
> The fill-in the blank form fields are on page 1, but on the next pages the
[quoted text clipped - 5 lines]
> there a simple macro that would unprotect the headers/footers and allow
> editing without resetting the form fields? Thank you.
lschro - 27 Apr 2005 14:54 GMT
Thank you, Chuck. I'm sure this will work for what I need. I am teaching
myself how to write macros. This will take the guesswork out of trying to
make it work. Thank you.
> You have to unprotect the form, edit the header/footer then reprotect it. To
> prevent losing data already in the form fields use the NoReset parameter.
[quoted text clipped - 23 lines]
> > there a simple macro that would unprotect the headers/footers and allow
> > editing without resetting the form fields? Thank you.
Sassy3fan - 21 Sep 2007 20:10 GMT
Im just trying learning all this as well. What I need to do is edit the
headers on each page...but when I change page two, it also changes page one
and three...how can I edit each page to have different data? Example I want
page one to read Genisis: 1-2 and page two to read Genisis: 3-4 etc. Thanks
for any help you can give me.
> You have to unprotect the form, edit the header/footer then reprotect it. To
> prevent losing data already in the form fields use the NoReset parameter.
[quoted text clipped - 23 lines]
> > there a simple macro that would unprotect the headers/footers and allow
> > editing without resetting the form fields? Thank you.
Doug Robbins - Word MVP - 22 Sep 2007 08:15 GMT
Check out the use of the StyleRef field.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> Im just trying learning all this as well. What I need to do is edit the
> headers on each page...but when I change page two, it also changes page
[quoted text clipped - 41 lines]
>> > there a simple macro that would unprotect the headers/footers and allow
>> > editing without resetting the form fields? Thank you.
Graham Mayor - 22 Sep 2007 08:44 GMT
Shouldn't that be Genesis?

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Im just trying learning all this as well. What I need to do is edit
> the headers on each page...but when I change page two, it also
[quoted text clipped - 31 lines]
>>> there a simple macro that would unprotect the headers/footers and
>>> allow editing without resetting the form fields? Thank you.