Put a section break between pages one and two, and protect only section one.
I know the below code works for the entire document but what would the code
be for just the section?
ActiveDocument.Protect _
Type:=wdAllowOnlyFormFields, _
NoReset:=True, _
Password:=""
> Put a section break between pages one and two, and protect only section one.
>
[quoted text clipped - 23 lines]
> > I
> > making this too complicated?
Jezebel - 10 Aug 2006 23:36 GMT
>I know the below code works for the entire document but what would the code
> be for just the section?
[quoted text clipped - 39 lines]
>> > I
>> > making this too complicated?
Jezebel - 10 Aug 2006 23:37 GMT
activedocument.sections(1).Protectedforforms = true
>I know the below code works for the entire document but what would the code
> be for just the section?
[quoted text clipped - 39 lines]
>> > I
>> > making this too complicated?
Brendan - 16 Aug 2006 17:29 GMT
The section break works fine but I cannot get from page 1 to page 2 via an on
exit macro from the last field. This macro goes to a bookmark for the
narrative. The macro tests fine when the section or document is not
protected but from within the protected section, it does not work. My Goal is
to have page 1 protected all the time with all other pages unprotected.
> activedocument.sections(1).Protectedforforms = true
>
[quoted text clipped - 41 lines]
> >> > I
> >> > making this too complicated?
Jean-Guy Marcil - 11 Aug 2006 15:06 GMT
Brendan was telling us:
Brendan nous racontait que :
> I know the below code works for the entire document but what would
> the code be for just the section?
[quoted text clipped - 3 lines]
> NoReset:=True, _
> Password:=""
As you wrote, this code will lock/unlock the whole document.
If you already tagged some sections to be protected, than only those
sections will be affected by the locking/unlocking.
So, when you create the template, manually assigned which sections need
protecting and which don't.
Then, in code, you can lock/unlock as you want, and only the concerned
sections will lock/unlock.

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org