View.ShadeEditableRanges property (Word)
Returns or sets a Long that represents whether shading is applied to the ranges in a document for which users have permission to modify. .
Syntax
expression. ShadeEditableRanges
expression An expression that returns a 'View' object.
Remarks
True shades the ranges in a document that users can modify. Range shading is on by default. When range shading is on, or when you set the property to True, the ShadeEditableRanges property returns a value of -1. When you set the ShadeEditableRanges property to False it returns a value of 0. The values have no meaning beyond indicating whether the property is True or False.
Example
The following example shades all ranges for which users have permission to modify.
ActiveWindow.View.ShadeEditableRanges = True
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.