VBA Excel - tableau croisé dynamique Filtre Erreur d'Exécution '1004' PivotItems

J'ai le code suivant, qui ouvre un fichier excel, sélectionne la feuille et exécute une macro - j'ai ensuite réussi à faire enlever le filtre de Date, mais j'ai de la difficulté à obtenir pour filtre à "01/07/2013"

Sub Data()

Dim oExcel As Excel.Application
Dim oWB As Workbook
Dim oSheets As Sheets
Dim oPi As PivotItem
Set oExcel = New Excel.Application
oExcel.Workbooks.Open ("\\A79APBRSFACTD\MDSS\FactivityServer\FactShar\OEE_Daily2.xls")
oExcel.Visible = True
Set oExcel = Excel.Application
Set oWB = oExcel.Workbooks("OEE_Daily2.xls")

oWB.Sheets("OEE Pivot Daily").Select
oExcel.Run ("Update_OEE_Daily")
oWB.Sheets("OEE Pivot Daily").Range("B3").Select

With oWB.Sheets("OEE Pivot Daily").PivotTables("PivotTable2").PivotFields("Date")
    .ClearAllFilters
    .PivotItems("01/07/2013").Visible = True
End With

Set oExcel = Nothing
Set oWB = Nothing

End Sub

Je reçois le message d'erreur suivant Run-time error '1004': Unable to get the PivotItems property of the PivotField class

La date "01/07/2013" est disponible dans la source de données du tableau croisé dynamique, et je suis en mesure de sélectionner manuellement, mais pas automatiquement.

Ça, c'est incompréhensible pour moi, comme j'ai seulement besoin d'elle pour afficher la date.

OriginalL'auteur Conquistador | 2013-07-04