Created
July 27, 2021 14:46
-
-
Save stevesohcot/43a77d00ab1784ed2d3766e2b586fb7d to your computer and use it in GitHub Desktop.
VBA Replace Single Quote
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Public Function ReplaceSingleQuote(str As String) As String | |
| If Len(Trim(str)) > 0 Then | |
| ReplaceSingleQuote = Replace(str, "'", "''") | |
| Else | |
| ReplaceSingleQuote = str | |
| End If | |
| End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment