re-bonsoir,
dans le code de Banzai64, dans ce code:
Private Sub CommandButton1_Click()
' Valider
Dim I As Integer
Dim Lg As Long
Dim Cl As Integer
Dim Cel As Range
For I = 1 To 3
If Me.Controls("Combobox" & I).ListIndex = -1 Then
MsgBox "Veuillez remplir correctement" & vbCr & _
"Le mois" & vbCr & "Le jour" & vbCr & "Le motif"
Exit Sub
End If
Next I
With Sheets("feuil1")
Set Cel = .Range("A5:A29").Find(what:=Me.ComboBox1.Value, LookIn:=xlValues, lookat:=xlWhole)
If Not Cel Is Nothing Then
.Cells(Cel.Row + 1, 2 + Me.ComboBox2.ListIndex) = Me.ComboBox3.Column(1)
Else
MsgBox "Mois inconnu"
End If
End With
Unload Me
End Sub
SUR LA LIGNE " With Sheets("feuil1")", je ne peut pas avoir la "activesheet" au lieu de "feuil1" ??