Bonjour, en validant mon userforme, je voudrais retrouver le numéro de la ligne de la donnée de mon Combobox2 et ensuite inscrire dans ma feuille excel « Inscrits » (en colone G) le contenu de ma Combobox1 sur la même ligne !
Pourriez-vous m’aider svp ?Pour le moment j’ai :
Private Sub Valider_Click()
Dim Ligne As Integer
Dim Cible As String
If ComboBox2.ListIndex = -1 Then Exit Sub
On Error Resume Next
Cible = ComboBox2
Ligne = Application.WorksheetFunction.Match(Cible, _
Worksheets("Inscrits").Range("C:C"), 0)
.Cells(Ligne, 7) = Inscrits.ComboBox1
End If
Choixgroupe.Hide
Choixsujet.Show
End Sub
Merci !
Pourriez-vous m’aider svp ?Pour le moment j’ai :
Private Sub Valider_Click()
Dim Ligne As Integer
Dim Cible As String
If ComboBox2.ListIndex = -1 Then Exit Sub
On Error Resume Next
Cible = ComboBox2
Ligne = Application.WorksheetFunction.Match(Cible, _
Worksheets("Inscrits").Range("C:C"), 0)
.Cells(Ligne, 7) = Inscrits.ComboBox1
End If
Choixgroupe.Hide
Choixsujet.Show
End Sub
Merci !