Re,
Je rappelle pour ma part que je n'ai aucun souci avec Excel 2016, dans mon fichier, avec l'utilisation des segments.
Pour les versions inférieures à 2013, j'ai travaillé en VBA pour essayer de combler un vide...
Pouvez-vous y jeter un œil averti ?
Option Explicit
Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
Dim n As Long, xlVersion As Long
Dim listArray
Application.EnableEvents = False
xlVersion = Val(Application.Version)
Select Case xlVersion
Case Is < 15
listArray = Array("lun", "mar", "mer", "jeu", "ven", "sam", "dim")
n = Application.GetCustomListNum(listArray)
If n = 0 Then
Application.AddCustomList (listArray)
n = Application.GetCustomListNum(listArray)
End If
With Target
.ManualUpdate = True
.SortUsingCustomLists = True
.PivotFields("Jour").AutoSort _
Order:=xlAscending, _
field:="Jour"
.ManualUpdate = False
End With
Application.DeleteCustomList listnum:=n
Case Else
'With Target
'.ManualUpdate = True
'.PivotFields("Jour").AutoSort _
Order:=xlAscending, _
field:="Jour"
'.ManualUpdate = False
'End With
End Select
Application.EnableEvents = True
End Sub