VERIFICANDO DIGITACAO
Pessoal gostaria de saber como faço para verificar se o que o usuario digitou não contém numeros somente letras e o inverso também.
Antecipadamente agradeço a atenção
Antecipadamente agradeço a atenção

vc tem um opção de não deixar o usuário escrever números como também somente números.
somente números:
Private Sub txtddd_KeyPress(KeyAscii As Integer)
If (KeyAscii < 48 Or KeyAscii > 57) And (KeyAscii <> 8) Then KeyAscii = 0
End Sub
somente letras:
Private Sub txtddd_KeyPress(KeyAscii As Integer)
If NOT (KeyAscii < 48 Or KeyAscii > 57) And (KeyAscii <> 8) Then KeyAscii = 0
End Sub
somente números:
Private Sub txtddd_KeyPress(KeyAscii As Integer)
If (KeyAscii < 48 Or KeyAscii > 57) And (KeyAscii <> 8) Then KeyAscii = 0
End Sub
somente letras:
Private Sub txtddd_KeyPress(KeyAscii As Integer)
If NOT (KeyAscii < 48 Or KeyAscii > 57) And (KeyAscii <> 8) Then KeyAscii = 0
End Sub
Tópico encerrado , respostas não são mais permitidas