Private Sub Text1_KeyPress(KeyAscii As Integer) KeyAscii = Asc(StrConv(Chr(KeyAscii), vbUpperCase)) End Sub