A
anders.johansen
Hi,
I want to be able to parse the contents of a document, and possibly
change a single word in the text. Unfortunately inserting textboxes
seem to have strange effects on the document.
If I have a document that has this content:
"Hello world"
I get this:
ActiveDocument.Range.Text is "Hello world"
ActiveDocument.Range(7, 12).Text is "world"
However, if I add a Text box in front of "Hello world", so the
document looks like this:
---
BOX
Goodbye world
BOX_END
Hello world
---
I get this:
ActiveDocument.Range.Text is "\x01\x15Hello world"
ActiveDocument.Range(7, 12).Text is " \\* "
ActiveDocument.Range(9, 14).Text is "\\* ME"
What gives?
Sincerely,
Anders S. Johansen
I want to be able to parse the contents of a document, and possibly
change a single word in the text. Unfortunately inserting textboxes
seem to have strange effects on the document.
If I have a document that has this content:
"Hello world"
I get this:
ActiveDocument.Range.Text is "Hello world"
ActiveDocument.Range(7, 12).Text is "world"
However, if I add a Text box in front of "Hello world", so the
document looks like this:
---
BOX
Goodbye world
BOX_END
Hello world
---
I get this:
ActiveDocument.Range.Text is "\x01\x15Hello world"
ActiveDocument.Range(7, 12).Text is " \\* "
ActiveDocument.Range(9, 14).Text is "\\* ME"
What gives?
Sincerely,
Anders S. Johansen