R.Strauss wrote:
***************************************************
hiliteList.Add 0, 32767
Set wordHilite = pdPage.CreateWordHilite(hiliteList)
For idx = 0 To wordHilite.GetNumText - 1
'taking the word for searching
word = Trim(wordHilite.GetText(idx))
If word = wordFind Then
Debug.Print wordToHilite.GetText(idx)
Exit For
End If
Next
******************************************************* The Debug.print in this routine gives result "1234/5" with idx = 113
hiliteList.Add 113, 1
Set wordHilite = pdPage.CreateWordHilite(hiliteList)
Debug.Print wordToHilite.GetText(0)
***************************************************** this debug.print should give the same result of the former one becuase I try to reach the item without looping, but it's not so. Here the result is "zzzz"
Where did you set the variable wordToHilite ?