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 / June 2005

Tip: Looking for answers? Try searching our database.

vba equivalent of "highlight the regions I can edit"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Johannes Stuermer - 03 Jun 2005 04:53 GMT
In a protected document I can have Word highlight all fields that are
editable in the document. This is done via a checkbox in the "Protect
Document" section of the task pane that reads "highlight the regions I can
edit".

How can I invoke this behavior from vba?

Thanks,
Johannes Stuermer
Jonathan West - 03 Jun 2005 10:46 GMT
> In a protected document I can have Word highlight all fields that are
> editable in the document. This is done via a checkbox in the "Protect
[quoted text clipped - 5 lines]
> Thanks,
> Johannes Stuermer

Hi Johannes

This is what you need

ActiveWindow.View.ShadeEditableRanges = True

(I learned this trick from Beth Melton just last month <g>)

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org 

Johannes Stuermer - 03 Jun 2005 20:05 GMT
Thank you very much Jonathan (and Beth).

> > In a protected document I can have Word highlight all fields that are
> > editable in the document. This is done via a checkbox in the "Protect
[quoted text clipped - 13 lines]
>
> (I learned this trick from Beth Melton just last month <g>)
 
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.