Replace¶
Replaces every occurrence of a text in the range.
1 | |
Parameters¶
string search
The text to find.
string replacement
The text to insert.
object format optional
Character format properties applied to the inserted text.
Remarks¶
When format is given, its character format properties, such as Bold, Italic or Size, are applied to the replaced text. Use distinctive placeholders, such as {CustomerName}, so that ordinary text is not replaced by accident.
Examples¶
Fill the placeholders of a Word template¶
1 2 3 4 5 6 7 8 9 | |