Sub test()
Dim Pt As PivotItem, C As Range
Application.ScreenUpdating = False
inCalculationMode = Application.Calculation
Application.Calculation = xlCalculationManual
With Sheets("Cpts bancaires").PivotTables(1)
.ManualUpdate = True
On Error Resume Next
.PivotFields("Date").ClearAllFilters
On Error GoTo 0
For Each Pt In .PivotFields("Date").PivotItems
For Each C In Pt.DataRange
If C.Column = 7 Then
If C.Row = 20 Then Stop
If C = "" And C.Offset(, 1) = "" Then
Pt.Visible = False
ctr = ctr + 1
Debug.Print ctr
End If
End If
Next C
Next Pt
.ManualUpdate = False
End With
Application.Calculation = inCalculationMode
End Sub