???I have used Webbrowser control in editable mode.I am using IHTMLTxtRange for find a word and replacing it with other word.I have to find and replace internally in my code.Following is my code:-Public Sub FindReplaceText(ByVal sfindText As String, ByVal sReplacetext As String) Try[code].....It works fine for all find and replace except if the word contains vbnewline.E.g If in webbrowser control