I
Igor
Hi everyone!
I have a small problem; please help me to solve it if somebody knows.
I have to find and select all occurrences of any string in Word document.
I'm working with Word document by OLE.
The sample code is :
If (oWord_FoundRange.Find.Execute("Any string", , , , , , True)) Then
oWord_FoundRange.Select
End If
oWord_Document.Activate
But it selects only the first occurrence of searching string. I have to
highlight all occurrences. In addition, I have not to change the document,
colors etc.
On other words, I have to simulate the same behavior like check box of the
Word 2003 of the Find window "Select all elements, found in".
Please, help me!
Thanks!
Igor.
I have a small problem; please help me to solve it if somebody knows.
I have to find and select all occurrences of any string in Word document.
I'm working with Word document by OLE.
The sample code is :
If (oWord_FoundRange.Find.Execute("Any string", , , , , , True)) Then
oWord_FoundRange.Select
End If
oWord_Document.Activate
But it selects only the first occurrence of searching string. I have to
highlight all occurrences. In addition, I have not to change the document,
colors etc.
On other words, I have to simulate the same behavior like check box of the
Word 2003 of the Find window "Select all elements, found in".
Please, help me!
Thanks!
Igor.