J
jag
I'm moving text from several old poorly formatted documents into newly
formatted documents, by searching for certain "text markers", copy the data
and pasting into the new document. I'm doing this with ranges. All this is
working perfect.
My problem is that when the text is copied from the old document it's
picking up some weird spaces with the text. I checked the old document and
indeed the spaces are there, some are even bold. So I figured I would just
use the TRIM statement and remove all these. Well when I use the TRIM
statement it only removes 1 space.
The code I'm using for the TRIM is below:
TempText = AppraisalDoc.Range(TextToSearch1.End + 1, TextToSearch2.End -
Len(TextToFind))
Why is it only removing 1 space, not all of them??
TIA
formatted documents, by searching for certain "text markers", copy the data
and pasting into the new document. I'm doing this with ranges. All this is
working perfect.
My problem is that when the text is copied from the old document it's
picking up some weird spaces with the text. I checked the old document and
indeed the spaces are there, some are even bold. So I figured I would just
use the TRIM statement and remove all these. Well when I use the TRIM
statement it only removes 1 space.
The code I'm using for the TRIM is below:
TempText = AppraisalDoc.Range(TextToSearch1.End + 1, TextToSearch2.End -
Len(TextToFind))
Why is it only removing 1 space, not all of them??
TIA