Private Sub b_valid_Click() 'bouton modif
If Me.Enreg <> "" And Me.textbox6 <> "" Then
noEnreg = Me.Enreg
For k = 1 To Ncol 'k = decalage de colone
If k <> 2 And k <> 11 And k <> 12 And k <> 14 And k <> 15 Then 'evite de copier les colonne 2 (B) 11(K) 12(L) 14(N) 15(O)
X = Replace(Me("textBox" & k), " ", "")
If Me("textbox" & k) <> "" Then
Select Case k
Case 20, 23, 24, 25: f.Cells(noEnreg, k) = CDate(Me.Controls("textBox" & k)): f.Cells(noEnreg, k).NumberFormat = "dd-mm-yyyy"
Case Else: f.Cells(noEnreg, k) = Me.Controls("textBox" & k)
End Select
Else
f.Cells(noEnreg, k) = Empty
End If
End If
Next k
UserForm_initialize
End If
End Sub