Below code replaces double quotes with single quotes:
Dim strMyVariable As String
strMyVariable = "D""souza"
strMyVariable = Replace(strMyVariable, Chr(34), Chr(39))
MsgBox "Output :: " & Trim(strMyVariable)
Best Regards
Vadivel
MVP ASP/ASP.NET
http://vadivel.thinkingms.com