Avatar of RIAS
RIAS
Flag for United Kingdom of Great Britain and Northern Ireland asked on

MailMerge

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!
.NET ProgrammingVisual Basic.NET

Avatar of undefined
Last Comment
RIAS

8/22/2022 - Mon
Éric Moreau

have you tried adding in your arguments:
MatchCase:=True

Open in new window

RIAS

ASKER
Where to add it?
ASKER CERTIFIED SOLUTION
Éric Moreau

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
RIAS

ASKER
Will try and get back. Cheers
Your help has saved me hundreds of hours of internet surfing.
fblack61
RIAS

ASKER
Thanks!