How to programatically un-highlight editable regions

S

Sylvain

When you protect a document, by default the "highlight the regions I
can edit" checkbox is checked in the task pane, how can I
programatically un-check it. When this checkbox is checked, the
editable regions appear in yellow. I tried doing this:

Selection.GoToEditableRange().HighlightColorIndex =
word.WdColorIndex.wdNoHighlight

but that doesn't seem to be doing anything. If anyone knows how to do
this, please let me know.

Thanks,

sylvain.
 
C

Cindy M -WordMVP-

Hi Sylvain,
When you protect a document, by default the "highlight the regions I
can edit" checkbox is checked in the task pane, how can I
programatically un-check it. When this checkbox is checked, the
editable regions appear in yellow.
If you record a macro, and uncheck that box, what syntax is recorded?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 

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