Sub lettre()
Dim modele$, ligne&
With ActiveSheet
modele = .Shapes(Application.Caller).DrawingObject.Caption & "*"
ligne = 3 + Application.IfError(Application.Match(modele, .Range("b4:b" & Rows.Count), 0), 0)
If ligne = 3 Then ligne = 4: Beep
ActiveWindow.ScrollRow = ligne
ActiveWindow.ScrollColumn = 1
End With
End Sub
Sub trier()
Dim der&
With ActiveSheet
If .FilterMode Then .ShowAllData
der = .Cells(Rows.Count, "b").End(xlUp).Row
With .Range("a3:f" & der)
.Sort key1:=.Range("b3"), order1:=xlAscending, MatchCase:=False, Header:=xlYes
.Borders.LineStyle = xlContinuous
End With
.Range(.Cells(der + 1, "a"), .Cells(Rows.Count, "f")).Borders.LineStyle = xlLineStyleNone
.Range("a4").Select
End With
End Sub