Bonjour à tous et toutes
j'aimerais savoir comment ajouter module le compteur pour "obtenir une numérotation automatique"" a mon macro .
voici le macro:
Sub Rectangleàcoinsarrondis1_Cliquer()
Dim NbLg As Long
Application.ScreenUpdating = False
Range("B13:P80").Clear
With Sheets("Liste")
If .AutoFilterMode = True Then .AutoFilterMode = False
NbLg = .Range("B" & Rows.Count).End(xlUp).Row
.Range("A2:P" & NbLg).AutoFilter field:=6, Criteria1:=Range("X2")
If Application.Subtotal(103, .Columns("F")) > 1 Then
.Range("A3:O" & NbLg).SpecialCells(xlCellTypeVisible).Copy Range("B13")
End If
If .AutoFilterMode = True Then .AutoFilterMode = False
End With
End Sub
Bien cordialement à tous!!!
Merci d'avance