why not write a function to perform the operation
for you
here is the one i have written;
Code:
Option Explicit
Const InvalideChar As String = "~`!@#$%^&*()_-+=|\{}[];':<>,.?/"
Private Function RemoveInvalideChar(Expression As String, _
sInvalideChar As String)
Dim i As Integer 'counter
Dim sChar As String 'hold single charater
Dim iLenChar As Integer 'lenght of all character
iLenChar = Len(sInvalideChar)
For i = 1 To iLenChar
sChar = Mid$(sInvalideChar, i, 1)
Expression = Replace(Expression, sChar, vbNullString)
Next i
RemoveInvalideChar = Replace(Expression, Chr(34), vbNullString) ' chr(34) is "
End Function
hope it helps
Arowolo