Protect Document - Remove Editing Restrictions

D

dan.KSU

VBA Gods;

I recently created a template that uses editing restriction from the
Protect Document Task Pane. In my code I want to be able to remove
that protection for a specific user which I can do. The only caveat is
that I am unable to remove the Highlighted Unprotected portions of the
document. The only way I am able to do this is through the Task Pane
by unselectting the Editing Restrictions checkbox and answering "yes"
to the dialog pop-up which asks if I want to ignore exceptions. This
is what I want to do in the code.

Any suggestions?

Thanks in advance for your help
 
C

Cindy M.

I recently created a template that uses editing restriction from the
Protect Document Task Pane. In my code I want to be able to remove
that protection for a specific user which I can do. The only caveat is
that I am unable to remove the Highlighted Unprotected portions of the
document. The only way I am able to do this is through the Task Pane
by unselectting the Editing Restrictions checkbox and answering "yes"
to the dialog pop-up which asks if I want to ignore exceptions. This
is what I want to do in the code.
Try it with a variation on this:

ActiveWindow.View.ShadeEditableRanges

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :)
 
D

dan.KSU

Try it with a variation on this:
ActiveWindow.View.ShadeEditableRanges
Yes, I tried this. If the document is still protected and I execute:

ActiveWindow.View.ShadeEditableRanges = False,

the shading (highlighting) goes away, however, once I stop protection
the shading reappears grayed.

If I unprotect the document first then execute the above line, nothing
happens.

Good suggestion, but can you think of any others?

Thanks again,

Daniel
 

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