Salut,
Tu as ceci dans le code de ta feuil1
Option Explicit
Const Plage As String = "A10
15"
Dim Ch$
'Celle là est évènementielle
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Range(Plage).Columns(3), Target) Is Nothing Then
If Len(Ch) = 0 Then Exit Sub
With UserForm1
.ListBox1.AddItem Ch
.ListBox2.AddItem Sheets(Right(Ch, 1) + 1).Name
.Show
End With
[A1] = [A1] + 1 'ici à rajouter<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'ici on récupére la valeur de la cellule qui peut être modifiée
On Error Resume Next
Ch = Target.Text
End Sub
'
'Cette procédure n'est pas évènementielle
Private Sub Worksheet_Change1(ByVal Target As Range)
If Not Application.Intersect(Range(Plage).Columns(3), Target) Is Nothing Then
If Len(Ch) = 0 Then Exit Sub
With UserForm1
.ListBox1.AddItem Ch
.ListBox2.AddItem Sheets(Right(Ch, 1) + 1).Name
.Show
[A1] = [A1] + 1 'ici à rajouter
End With
End If
End Sub
A+++