Bonsoir
Un essai
Sub Produit()
Application.ScreenUpdating = False
Application.EnableEvents = False
Dim PremLg As Integer, Derlg As Integer, i As Integer
PremLg = Range("AS11").End(xlDown).Offset(1, 0).Row
Derlg = Range("A65536").End(xlUp).Row
For i = PremLg To Derlg
If Range("AS" & i) > 0 Then
Rows(PremLg).Insert Shift:=xlDown
Rows(i + 1).Cut Destination:=Range("A" & PremLg)
Rows(i + 1).Delete
End If
Next i
Application.EnableEvents = True
End Sub
Avec un appel dans la feuille
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, Range("AS11:AS" & Range("A65536").End(xlUp).Row)) Is Nothing Then
Call Produit
End If
End Sub
Une MFC met la ligne en gris
Amicalement
Nad