想要用VBA自動進行已插入的樞紐分析表的條件篩選
表格長這樣
https://photos.app.goo.gl/GAmSX7aJ9t3tkW6C8
Sub M()
With Worksheets("sheet1").PivotTables("table1").PivotFields("time")
.PivotFilters.Add Type:=xlCaptionContains, Value1:="2022 / 9 / 7"
End With
End Sub
卻顯示應用程式或物件定義上的錯誤
請問一下,是我哪邊沒定義到嗎?