This works fine for finding the first occurrence of a word, but need it modified to find the next occurrence of the word with each button clickCode:Private Sub cmdFind_Click() Dim str As String Dim Start As Integer Dim Length As Integer str = txtFind Length = Len(str) Start = rtfBills.Find(str, , , rtfWholeWord) With rtfBills .SelStart = Start .SelLength = Length .SelColor = vbRed End With
How to do this ?





Reply With Quote