iamtheboss32
New Member
- Joined
- Apr 11, 2018
- Messages
- 4
Hi Good Day everyone!
I have an excel file that needs to remove all special characters except for the following
1.)A-Z & a-z
2.) 0-9
3.), . - _ é É
I have found a vba code but I really cant update it cause I might break the file. This code only removes the characters under xChars. is there any way to reverse since characters that I want to retain are fewer than all special characters.
here is the code I found on google
Function RemoveSpecial(Str As String) As String
Dim xChars As String
Dim I As Long
xChars = "#$%()^*&"
For I = 1 To Len(xChars)
Str = Replace$(Str, Mid$(xChars, I, 1), "")
Next
RemoveSpecial = Str
End Function
Thanks,
I have an excel file that needs to remove all special characters except for the following
1.)A-Z & a-z
2.) 0-9
3.), . - _ é É
I have found a vba code but I really cant update it cause I might break the file. This code only removes the characters under xChars. is there any way to reverse since characters that I want to retain are fewer than all special characters.
here is the code I found on google
Function RemoveSpecial(Str As String) As String
Dim xChars As String
Dim I As Long
xChars = "#$%()^*&"
For I = 1 To Len(xChars)
Str = Replace$(Str, Mid$(xChars, I, 1), "")
Next
RemoveSpecial = Str
End Function
Thanks,