Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
Application.ScreenUpdating = False
p = 0
ligne = Cells(2, 4).End(xlDown).Row
Colfin = Cells(ligne, 1).End(xlToRight).Column
For n = 1 To Colfin
If Left(Cells(ligne, n), 10) <> "DATE RESA/" Then ColAtraiter = n: p = p + 1: GoTo suite1
If Left(Cells(ligne, n), 10) = "DATE RESA/" Then ColAtraiter = n: p = p + 1: GoTo suite2
suite3:
Next
Application.ScreenUpdating = True
'MsgBox p
Exit Sub
suite1:
With Range(Cells(ligne + 1, ColAtraiter), Cells(ligne + 1000, ColAtraiter)).Font
.Name = "Calbri"
.Size = 11
'.Strikethrough = False
'.Superscript = False
'.Subscript = False
'.OutlineFont = False
'.Shadow = False
'.Underline = xlUnderlineStyleNone
'.ThemeColor = xlThemeColorLight1
'.TintAndShade = 0
'.ThemeFont = xlThemeFontNone
End With
GoTo suite3
suite2:
With Range(Cells(ligne + 1, ColAtraiter), Cells(ligne + 1000, ColAtraiter)).Font
.Name = "Wingdings"
.Size = 11
'.Strikethrough = False
'.Superscript = False
'.Subscript = False
'.OutlineFont = False
'.Shadow = False
'.Underline = xlUnderlineStyleNone
'.ThemeColor = xlThemeColorLight1
'.TintAndShade = 0
'.ThemeFont = xlThemeFontNone
End With
GoTo suite3
End Sub