2011-06-03 201 views

回答

1

我沒有工作了很長一段時間用Excel + VBA,但你嘗試過這樣的:

Dim pvtField As Excel.PivotField 
Dim pvtItem As Excel.PivotItem 
For Each pvtField In pvtTable.PivotFields 
    For Each pvtItem In pvtField.PivotItems 
     pvtItem.Delete 
    Next 
Next 
+0

我不想刪除的項目..我想刪除該字段本身 – satyajit 2011-06-03 13:14:06

+0

啊,好的。然後我忍不住,對不起。 – 2011-06-03 13:19:07

相關問題