Famille de feuilles de calcul Microsoft avec des outils pour l’analyse, le graphique et la communication des données.
Essaie :
Private Sub CommandButton1_Click()
' Modifier
Dim Ctrl As Control
Dim Colonne As Integer
Dim Ligne As Long
If Me.ComboBox5.ListIndex = -1 And Me.CODE.ListIndex = -1 And Me.Ndemande.ListIndex = -1 Then Exit Sub
If Me.ComboBox5.ListIndex > -1 Then
Ligne = Me.ComboBox5.ListIndex + 2
ElseIf Me.CODE.ListIndex > -1 Then
Ligne = Me.CODE.ListIndex + 2
ElseIf Me.Ndemande.ListIndex > -1 Then
Ligne = Me.Ndemande.ListIndex + 2
End If
With Sheets("base")
For Each Ctrl In Me.Controls
Colonne = Val(Ctrl.Tag)
If Colonne > 0 Then .Cells(Ligne, Colonne) = Ctrl
Next Ctrl
End With
Unload Me
UserForm2.Show
End Sub
Daniel