Sub te()
Sheets(1).Range("w1:w15").AdvancedFilter xlFilterCopy, , Sheets(1).Range("e20"), True
For i = 21 To Sheets(1).Range("e19").End(xlDown).Row
Sheets("planning2").Copy after:=Sheets(Sheets.Count)
ActiveSheet.Name = Sheets(1).Cells(i, 5).Value
Next
With ActiveSheet.PivotTables("Tableau croisé dynamique1").PivotFields("transport")
For j = 1 To .PivotItems.Count
If .PivotItems(j) = ActiveSheet.Name Then
.PivotItems(j).Visible = True
Else
.PivotItems(j).Visible = False
End If
Next
End With
End Sub