Cyril
Firstly, That is a great looking dashboard, Well Done.
Secondly, That is a bizarre issue that is happening with Conditional Formatting
It looks like it is struggling to Change the Number format from Date to Number or back again. Which is the whole idea of Conditional Formatting ?
But as always there is a workaround ! ! !
Delete all the Conditional formating in the Range K6:AJ6
Copy and paste the following code in the code page for the "Tableau de Bord" worksheet in the VBA dialog
Private Sub Worksheet_Change(ByVal Target As Range)
If Worksheets("Tableau de Bord").Range("N5").Value = "jour" Then
'
Range("K6:AJ6").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorLight2
.TintAndShade = 0.799981688894314
.PatternTintAndShade = 0
End With
Selection.NumberFormat = "dd/mm"
Else
'
Worksheets("Tableau de Bord").Range("K6:AJ6").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent3
.TintAndShade = 0.799981688894314
.PatternTintAndShade = 0
End With
Selection.NumberFormat = "#,##0"
End If
For Each c In Worksheets("Tableau de Bord").Range("K6:AJ6")
If c.Value = Worksheets("Tableau de Bord").Range("X3").Value Then
With c.Interior
.Pattern = xlSolid
.PatternColor = 0
.ThemeColor = xlThemeColorAccent6
.TintAndShade = -0.249977111117893
.PatternTintAndShade = 0
End With
End If
Next
End Sub