-
-
Save ndthanh/a570ba4fbe5a1a5cd04306bd34e44957 to your computer and use it in GitHub Desktop.
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
Function RemoveText(str As String) As String | |
With CreateObject("VBScript.RegExp") | |
.Global = True | |
.Pattern = "[^0-9]" | |
RemoveText = .Replace(str, "") | |
End With | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment