Re: Word's "Entire Document" XML tags are fragile!

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Cindy M -WordMVP-" <C.Meister-C@xxxxxxxxxx> wrote in message
news:VA.0000c219.0089833f@xxxxxxxxx
Hi Brian,

What you're looking for is the Editors collection, that's a property of
the
RANGE or SELECTION object. So, you create a RANGE object, then

MyRange.Editors.Add(wdEditorEveryone)

Ah. So, do I leave the document protection on and just add or remove
editors for a range that includes everything inside the outer XML tags? Or
do I need to Unprotect the document, add or remove editors, and then call
Protect again?

(The latter is how the Word UI works; but the former would be much more
convenient, programmatically.)

Thanks!

Brian


.