Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2007

Tip: Looking for answers? Try searching our database.

Protect Document - Remove Editing Restrictions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dan.KSU@gmail.com - 16 Jan 2007 18:53 GMT
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
Cindy M. - 18 Jan 2007 18:42 GMT
> 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
[quoted text clipped - 4 lines]
> 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 :-)
dan.KSU@gmail.com - 19 Jan 2007 20:08 GMT
> 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
dan.KSU@gmail.com - 02 Feb 2007 15:40 GMT
Any other ideas on this?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.