Reply
 
Thread Tools Display Modes
  #1   Report Post  
MSLearner MSLearner is offline
Junior Member
 
Posts: 0
Default VBscript code to protect a section in word document

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

I am trying to create a macro (AutoOpen()) to un-protect the second 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 whole docuemt.

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


Thanks
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
protect section break from accidental deletion? Freerk Page Layout 1 November 27th 10 07:30 PM
How to code the ENTER key to move between form fields in a protect Rookie Microsoft Word Help 1 November 26th 08 09:55 AM
Can I protect Section Breaks ? Breaker Breaker Page Layout 4 December 9th 05 08:46 PM
How to protect section of a table greg Microsoft Word Help 7 April 12th 05 08:48 PM
How can I update the footer in section 2 when I protect section 1? Reb Microsoft Word Help 1 December 10th 04 12:26 AM


All times are GMT +1. The time now is 01:36 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"