. , document.text. , document.range(, ), . .
, . , - ( ). , document.text BEL, . , , , , .text.
, document.text, " " . , , /. Document.text , / . .
, (, ) - :
Set matchRange = doc.Range.Characters(myMatches(j).FirstIndex + 1)
matchRange.Collapse (wdCollapseStart)
Call matchRange.MoveEnd(WdUnits.wdCharacter, myMatches(j).Length)
matchRange.text = Replacement
, , - , Word , . , , , .
In the bottom line, I could not find a suitable way to match the indexing of the document.text line with the equivalent range (start, end), which is not a performance error.
Ideas are welcome, and thanks.
source
share