Actuellement, j'ai cette macro sur mon onglet "Base"
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, Range("B:B")) Is Nothing Then
Call Trop
End If
End Sub
Et le module associé "Trop"
Sub Trop()
Dim LastRow As Long
LastRow = ActiveSheet.Range("B2").End(xlDown).Row
Range("B2:B" & LastRow).Sort Key1:=Range("B2"), Order1:=xlAscending, Key2:=Range("B2"), Order2:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase _
:=False, Orientation:=xlTopToBottom, DataOption1:=xlSortNormal, _
DataOption2:=xlSortNormal
End Sub
Cela me permet dès l'ajout d'un fournisseur (colonne B) via un USF de trier automatiquement ma colonne.
Je cherche à étendre cela à mes 4 colonnes et non seulement la colonne B.
Je m'excuse si je n'ai pas été assez clair Frangy.