Private Sub MaBoite_Change()
Dim a As Integer
a = InStr(MaBoite.Name, "ox") + 2
If Val(Mid(MaBoite.Name, a)) Mod 2 = 0 Then
If Len(MaBoite) > 0 Then UserForm1.Controls("TextBox" & Val(Mid(MaBoite.Name, a)) - 1) = "N°" & Replace(UserForm1.Controls("TextBox" & Val(Mid(MaBoite.Name, a)) - 1), "N°", "") Else UserForm1.Controls("TextBox" & Val(Mid(MaBoite.Name, a)) - 1) = Mid(UserForm1.Controls("TextBox" & Val(Mid(MaBoite.Name, a)) - 1), 3)
MaBoite.Value = Application.WorksheetFunction.Proper(MaBoite.Value)
End If
End Sub