Difference between revisions of "RemoveChars"

From scripting
Jump to: navigation, search
(Created page with " Function RemoveChars(InputStr As String, ArrayOfChars As Variant) As String Dim tempStr As String tempStr = InputStr For X = 0 To UBound(ArrayOfChars) tempStr = Repla...")
 
(No difference)

Latest revision as of 19:51, 24 April 2017

Function RemoveChars(InputStr As String, ArrayOfChars As Variant) As String
Dim tempStr As String
tempStr = InputStr
For X = 0 To UBound(ArrayOfChars)
    tempStr = Replace(tempStr, ArrayOfChars(X), "")
Next X
RemoveChars = tempStr
End Function