A voir également:
- Vba
- Excel compter cellule couleur sans vba - Guide
- Vba find - <a href="https://forums.commentcamarche.net/forum/astuces-et-solutions-378">Astuces et Solutions</a>
- Vba inputbox - <a href="https://forums.commentcamarche.net/forum/astuces-et-solutions-378">Astuces et Solutions</a>
- Incompatibilité de type vba ✓ - <a href="https://forums.commentcamarche.net/forum/vb-vba-267">Forum VB / VBA</a>
- Vba range avec variable ✓ - <a href="https://forums.commentcamarche.net/forum/vb-vba-267">Forum VB / VBA</a>
mais je n'y arrive toujours pas car j'aimerais intégrer Ucase à l'événement keypress de la textbox.et je ne comprends pa bien car il y a une histoire de code ascii dans cet evenement keypress.
Private Sub TextBox1_KeyUp(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode >= 65 And KeyCode <= 90 Then
TextBox1.Value = Left(TextBox1.Value, Len(TextBox1.Value) - 1) & Chr(KeyCode)
End If
End Sub