Dim rtnav As NotesRichTextNavigator Dim rtRange As NotesRichTextRange Dim tmpRange As NotesRichTextRange Set rtnav = rtitem.CreateNavigator Set rtRange = rtitem.CreateRange Set tmpRange = rtitem.CreateRange Call rtnav.FindFirstElement( RTELEM_TYPE_TEXTPARAGRAPH ) Call rtRange.SetBegin( rtnav ) Call tmpRange.SetBegin( rtnav ) Do While Left( tmpRange.TextParagraph, Len( searchString ) ) <> searchString Call rtnav.FindNextElement( RTELEM_TYPE_TEXTPARAGRAPH ) Call tmpRange.SetBegin( rtnav ) Loop If removeSearchString = True Then Call rtnav.SetPositionAtEnd( rtnav ) End If Call rtRange.SetEnd( rtnav ) Call rtRange.Remove