VBscript code to protect a section in word document

M

MSLearner

Hi All,
In a 2010 word template, I have two sections. Manually, the firs
section is set to protect and second section in unprotected. When ope
this template, the whole document is protected. Therefore, Track Chang
cannot be used.

I am trying to create a macro (AutoOpen()) to un-protect the secon
section only. Frankly, I am trying to un-Protect the second section.

Could any one kindly provide me the VBscript code to do this?

NOTE:
ActiveDocument.Unprotect Password:="Password" will unprotect whol
docuemt.

I was able to get the section count with
ActiveDocument.Sections.Count


Thank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top