InsertedTextMark Property

Microsoft Word Visual Basic

Show All

InsertedTextMark Property

       

Returns or sets how Microsoft Word formats inserted text while change tracking is enabled (the TrackRevisions property is True). If change tracking is not enabled, this property is ignored. Use this property with the InsertedTextColor property to control the appearance of inserted text in a document. Read/write WdInsertedTextMark.

WdInsertedTextMark can be one of these WdInsertedTextMark constants.
wdInsertedTextMarkBold
wdInsertedTextMarkColorOnly
wdInsertedTextMarkDoubleUnderline
wdInsertedTextMarkItalic
wdInsertedTextMarkNone
wdInsertedTextMarkStrikeThrough
wdInsertedTextMarkUnderline

expression.InsertedTextMark

expression   Required. An expression that returns an Options object.

Remarks

The ShowRevisions property must be True in order to see the formatting for inserted text during editing. The PrintRevisions property must be True in order for Word to use the formatting for inserted text when printing a document.

Example

This example sets Word to italicize inserted text.

Options.InsertedTextMark = wdInsertedTextMarkItalic

This example sets Word to format inserted text as bold if it isn't already.

If Options.InsertedTextMark <> wdInsertedTextMarkBold Then
    Options.InsertedTextMark = wdInsertedTextMarkBold
Else
    MsgBox Prompt:="Inserted text is already bold!"
End If