Selectively protecting/unprotecting parts of word document

L

L.

Hi,

How can I protect selective parts of a word document where the selection is
determined programmatically. I.e.., I have a regular expression that can
identify the set of non-contiguous strings in a document that I want other
editors of this
document to view but not modify. (I write some Word documents in MS Word 2003
but then email them to outside reviewers who may accidentally break some
special text tags). In addition, I want a macro that can allow editors of
this document to unlock (unprotect) any of the protected strings without
unprotecting
everything.

In MS Word 2003 allows you to do this manually via
Tools/Protect Document/Editing Restrictions/Exceptions, but it doesn't seem
to work when you select your text (e.g. via selecting a style) and then
record this action as a macro. Also, un-protection seems to be an all-or-none
action.

Any suggestions will be appreciated.
 
C

Cindy M -WordMVP-

Replied to duplicate question in one of the
office.developer groups

Cindy Meister
 

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