RemoveChars

Removes all chars found in Chars_to_remove from String1

CodeFunctionName
What is this?

Public

Tested

Original Work
Function RemoveChars(String1, Chars_to_remove)
' Removes all chars found in Chars_to_remove from String1
NewStr = String1
For I = 1 To Len(Chars_to_remove)
NewStr = Replace(NewStr, Mid(Chars_to_remove, I, 1), "")
Next
RemoveChars = NewStr
End Function

String1, Chars_to_remove

Views 4,256

Downloads 1,326

CodeID
DB ID

ANmarAmdeen
606
Revisions

v1.0

Friday
June
22
2018