Hello,
have this code which works fine.But it is not case sensitive in the search
oDoc.Content.Find.Execute(FindText:="TO:",
ReplaceWith:="TO: " & dtSQL.Rows(0)("Title").ToString & " " & dtSQL.Rows(0)("PatientName").ToString, Replace:=Microsoft.Office.Interop.Word.WdReplace.wdReplaceAll)
Cheers!
Open in new window