By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
If Instr(OrgStr, SubStr)<=0 Then Exit Function
ReplaceSubstring=Mid(OrgStr, 1, Instr(OrgStr, SubStr)-1) & newStr &
Mid(orgStr, Instr(OrgStr, SubStr)+Len(subStr))