ShadeEditableRanges Property

Microsoft Word Visual Basic

ShadeEditableRanges Property

Returns or sets a Long that represents whether shading is applied to the ranges in a document for which users have permission to modify. True shades the ranges in a document that users can modify.

expression.ShadeEditableRanges

expression    Required. An expression that returns a View object.

Remarks

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.

    ActiveWindow.View.ShadeEditableRanges = True