Sub Worksheet_Activate()
Dim DL%, DLB%, c
For Each c In Sheets("A").[A1].CurrentRegion
If c.Value = "" Then c.Value = "-"
Next c
DL = Sheets("A").Range("A65500").End(xlUp).Row
With Sheets("B")
.Cells.Clear
Application.ScreenUpdating = False
.Range("A1:F" & DL) = Sheets("A").Range("A1:F" & DL).Value
.Range("E1:E" & DL) = Sheets("A").Range("F1:F" & DL).Value
.Range("F1:F" & DL).ClearContents
DLB = .Range("A65500").End(xlUp).Row
.Range("$A$1:$E$" & DLB).RemoveDuplicates Columns:=Array(1, 2, 3, 4, 5), Header:=xlYes
.[F1] = "Quantité"
DLB = .Range("A65500").End(xlUp).Row
.Range("A1:F" & DLB).Borders.LineStyle = xlThin
.Columns.AutoFit
.Range("F2:F" & DLB).FormulaLocal = "=NB.SI.ENS(A!A:A;B!A2;A!B:B;B!B2;A!C:C;B!C2;A!D:D;B!D2;A!F:F;B!E2)"
.Range("F2:F" & DLB).Value = .Range("F2:F" & DLB).Value
.Range("F2:F" & DLB).HorizontalAlignment = xlCenter
End With
End Sub