P
Paul Brown
Hello all,
I have created a Word 97 form which is basically in 2 parts. The first
section contains numerous fixed fields and drop down boxes and this section
is protected. The second section is an area for freeformat text and so is
unprotected. Within the form I have a Macro which when activated copies
sections 1 and 2 and creates sections 3 and 4 the first time, 5 and 6 the
second time, etc. After the Macro has run I need to reprotect all odd
numbered sections and leave all even numbered sections available for
freeformat text. Is there any way to do this?
ActiveDocument.Sections(all odd numbered sections).ProtectedForForms = True
ActiveDocument.Sections(all even numbered sections).ProtectedForForms =
False
ActiveDocument.Protect Password:="", NoReset:=True, Type:= _
wdAllowOnlyFormFields
Grateful for any assistance.
Paul.
PS low level knowledge of VBA - use the recorder to perform the bulk of the
action and then edit a bit where necessary.
I have created a Word 97 form which is basically in 2 parts. The first
section contains numerous fixed fields and drop down boxes and this section
is protected. The second section is an area for freeformat text and so is
unprotected. Within the form I have a Macro which when activated copies
sections 1 and 2 and creates sections 3 and 4 the first time, 5 and 6 the
second time, etc. After the Macro has run I need to reprotect all odd
numbered sections and leave all even numbered sections available for
freeformat text. Is there any way to do this?
ActiveDocument.Sections(all odd numbered sections).ProtectedForForms = True
ActiveDocument.Sections(all even numbered sections).ProtectedForForms =
False
ActiveDocument.Protect Password:="", NoReset:=True, Type:= _
wdAllowOnlyFormFields
Grateful for any assistance.
Paul.
PS low level knowledge of VBA - use the recorder to perform the bulk of the
action and then edit a bit where necessary.