InsertedTextColor Property

Microsoft Word Visual Basic

Show All

InsertedTextColor Property

       

Returns or sets the color of text that is inserted while change tracking is enabled. Read/write WdColorIndex.

WdColorIndex can be one of these WdColorIndex constants.
wdAuto
wdBlack
wdBlue
wdBrightGreen
wdByAuthor
wdDarkBlue
wdDarkRed
wdDarkYellow
wdGray25
wdGray50
wdGreen
wdNoHighlight
wdPink
wdRed
wdTeal
wdTurquoise
wdViolet
wdWhite
wdYellow

expression.InsertedTextColor

expression   Required. An expression that returns an Options object.

Remarks

If the InsertedTextColor property is set to wdByAuthor, Microsoft Word automatically assigns a unique color to each of the first eight authors who revise a document.

Example

This example sets the color of inserted text to dark red.

Options.InsertedTextColor = wdDarkRed

This example returns the current status of the Color option under Track Changes options on the Track Changes tab in the Options dialog box.

Dim lngColor As Long

lngColor = Options.InsertedTextColor