View.ShadeEditableRanges Property

Word Developer Reference

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

Visual Basic for Applications
  ActiveWindow.View.ShadeEditableRanges = True

See Also