G
Guest
Hi,
I am trying to retrieve all the sentences in a particular paragraph. When
the sentence contains the sequence '.:' i.e. dot followed by colon, Word
skips the preceeding sentence. I am using the following code snippet:
for each para in ThisDocument.Paragraphs
for each paraRange in para.Range.Sentences
Debug.Print paraRange.Text
Next
Next
Now what happens when a test like following is present is:
Tel.: +9144535352712
Debug.Print prints:
:
: +9144535352712
The Tel. is completely ignored. The same problem occurs with the ., sequence
too. Currently I am replacing the ., and .: sequences with a special
character for processing. But I do not know how many other such sequences
exist which Word fails to recognize properly. It would be great if anyone
can help me out here.
However sequences that Word recognizes are :
..[any character]
..[any number]
.."
..)
Thanks and Regards,
Laks
I am trying to retrieve all the sentences in a particular paragraph. When
the sentence contains the sequence '.:' i.e. dot followed by colon, Word
skips the preceeding sentence. I am using the following code snippet:
for each para in ThisDocument.Paragraphs
for each paraRange in para.Range.Sentences
Debug.Print paraRange.Text
Next
Next
Now what happens when a test like following is present is:
Tel.: +9144535352712
Debug.Print prints:
:
: +9144535352712
The Tel. is completely ignored. The same problem occurs with the ., sequence
too. Currently I am replacing the ., and .: sequences with a special
character for processing. But I do not know how many other such sequences
exist which Word fails to recognize properly. It would be great if anyone
can help me out here.
However sequences that Word recognizes are :
..[any character]
..[any number]
.."
..)
Thanks and Regards,
Laks