A very small DBA for Word project
Hi,
I need someone to write some VBA code for MS Word that does something macros almost seem to do but not quite: 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). I would like you to write me a VBA macro that can implement this protection.
In addition, I want a macro that can allow editors of this document to unlock (unprotect) any of the protected strings without unprotecting everything. (BTW, 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). Also, the solution should work for editors who are working in legacy MS Word (Word 2000, XP, and 2003).
Thanks