Substitute

This method substitutes a part of the characters in the worktext object.

Note: The method substitutes only the characters, but not the information associated to the characters, such as position or tag.

Syntax

Substitute (CharIndex as Long, Length as Long, value as String)
Parameter Description
CharIndex Position of the first character to substitute.
Length Number of characters to substitute.
Value String that replaces the worktext characters.