vba equivalent of "highlight the regions I can edit"

  • Thread starter Johannes Stuermer
  • Start date
J

Johannes Stuermer

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
 
J

Jonathan West

Johannes Stuermer said:
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

Hi Johannes

This is what you need

ActiveWindow.View.ShadeEditableRanges = True

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


--
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
 

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