chinel
XLDnaute Impliqué
Salut tout le monde, j'ai reçu ceci de porcinet82
et cela marche bien mais je voudrais faire encore mieux !
Private Sub Worksheet_Change(ByVal Target As Range)
Dim lig As Integer
lig = Target.Row
With Sheets("Statistiques")
If IsEmpty(.Cells(1, lig)) Then (ici il y a une colonne vide chaque fois)
.Cells(2, lig).Value = Target.Value
Else
.Cells(.Cells(65536, lig).End(xlUp).Row + 2, lig).Value = Target.Value
End If
End With
End Sub
voir l'exemple ci dessous
merci de votre aide !!!
Fichiers attachés
et cela marche bien mais je voudrais faire encore mieux !
Private Sub Worksheet_Change(ByVal Target As Range)
Dim lig As Integer
lig = Target.Row
With Sheets("Statistiques")
If IsEmpty(.Cells(1, lig)) Then (ici il y a une colonne vide chaque fois)
.Cells(2, lig).Value = Target.Value
Else
.Cells(.Cells(65536, lig).End(xlUp).Row + 2, lig).Value = Target.Value
End If
End With
End Sub
voir l'exemple ci dessous
merci de votre aide !!!
Fichiers attachés