Hi,
This is my code.
Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
Select Case KeyAscii
Case Asc(":"), Asc("?"), Asc("*"), Asc("<"), Asc(">"), Asc(""), Asc("/"), Asc("|") ', Asc(""")
KeyAscii = 0
End Select
End Sub
If I uncomment for ", I am getting error. I need to fix this. I tried Chr(34) also. But vain. Pls help.
This is my code.
Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
Select Case KeyAscii
Case Asc(":"), Asc("?"), Asc("*"), Asc("<"), Asc(">"), Asc(""), Asc("/"), Asc("|") ', Asc(""")
KeyAscii = 0
End Select
End Sub
If I uncomment for ", I am getting error. I need to fix this. I tried Chr(34) also. But vain. Pls help.