Adds, modifies, or removes an enclosure around the specified character or characters.
Syntax
expression.ModifyEnclosure(Style, Symbol, EnclosedText)
expression Required. An expression that returns a Range object.
Style Required Variant. The style of the enclosure. Can be one of the following WdEncloseStyle constants: wdEncloseStyleLarge, wdEncloseStyleNone, or wdEncloseStyleSmall.
Symbol Optional Variant. The symbol in which to enclose the specified range. Can be one of the following WdEnclosureType constants: wdEnclosureCircle, wdEnclosureDiamond, wdEnclosureSquare, or wdEnclosureTriangle. The default is wdEnclosureCircle.
EnclosedText Optional Variant. The characters that you want to enclose. If you include this argument, Microsoft Word replaces the specified range with the enclosed characters. If you don't specify text to enclose, Microsoft Word encloses all text in the specified range.