laurent45
XLDnaute Occasionnel
Bonjour le Forum,
J'ai le code suivant, et je souhaiterai savoir, s'il y avait une possibilité de le reduire.
Précision : Chaque Control est de type TextBox
Merci
Laurent
J'ai le code suivant, et je souhaiterai savoir, s'il y avait une possibilité de le reduire.
Précision : Chaque Control est de type TextBox
Code:
Private Sub CARestauMidiBox_AfterUpdate()
CARestauMidiBox = Format(CDbl(CARestauMidiBox), '# ##0.00')
End Sub
Private Sub CARestauMidiBox_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = 46 Then KeyAscii = 44
End Sub
Private Sub CARestauSoirBox_AfterUpdate()
CARestauSoirBox = Format(CDbl(CARestauSoirBox), '# ##0.00')
End Sub
Private Sub CARestauSoirBox_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = 46 Then KeyAscii = 44
End Sub
Private Sub CAVAE196MidiBox_AfterUpdate()
CAVAE196MidiBox = Format(CDbl(CAVAE196MidiBox), '# ##0.00')
End Sub
Private Sub CAVAE196MidiBox_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = 46 Then KeyAscii = 44
End Sub
Private Sub CAVAE196SoirBox_AfterUpdate()
CAVAE196SoirBox = Format(CDbl(CAVAE196SoirBox), '# ##0.00')
End Sub
Private Sub CAVAE196SoirBox_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = 46 Then KeyAscii = 44
End Sub
Private Sub CAVAE55MidiBox_AfterUpdate()
CAVAE55MidiBox = Format(CDbl(CAVAE55MidiBox), '# ##0.00')
End Sub
Private Sub CAVAE55MidiBox_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = 46 Then KeyAscii = 44
End Sub
Private Sub CAVAE55SoirBox_AfterUpdate()
CAVAE55SoirBox = Format(CDbl(CAVAE55SoirBox), '# ##0.00')
End Sub
Private Sub CAVAE55SoirBox_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = 46 Then KeyAscii = 44
End Sub
Merci
Laurent