Range.ModifyEnclosure procedure builder

Range.ModifyEnclosure (Word)

Adds, modifies, or removes an enclosure around the specified character or characters.

ModifyEnclosure (Style, Symbol, EnclosedText)

Selection.Range.ModifyEnclosure wdEncloseStyleLarge, _ 
 wdEnclosureCircle, "25"


The following argument is required

Style - The style of the enclosure. Can be any WdEncloseStyle constant

Optional arguments

The following arguments are optional

Symbol - The symbol in which to enclose the specified range. Can be any WdEnclosureType constant

EnclosedText - 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