Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2007

Tip: Looking for answers? Try searching our database.

How can I edit headers/footers in a protected form?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lschro - 27 Apr 2005 13:48 GMT
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
sections are unprotected to allow paragraphs of information to be inserted.
Ex. - After page 1 the Footer needs to be changed in each section: Exhibit A
Page 1 of 1, then Exhibit B Page 1 or 2, etc. I don't want to unprotect the
document because sometimes the information in one or two of the form fields
needs to be changed and re-protecting the doc. resets the form fields. Is
there a simple macro that would unprotect the headers/footers and allow
editing without resetting the form fields? Thank you.
Chuck - 27 Apr 2005 14:17 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.