- 帖子
- 176
- 主題
- 98
- 精華
- 0
- 積分
- 279
- 點名
- 0
- 作業系統
- window 7
- 軟體版本
- office 2007
- 閱讀權限
- 20
- 性別
- 男
- 註冊時間
- 2011-2-17
- 最後登錄
- 2020-4-8
|
樞紐表程式問題
程式相檢查樞紐表內的資料內容
但遇到內容是空白時就會出現型態不符合
請問應如何修改呢?
Dim Pvttable As PivotTable
Dim pvtitem As PivotItem
Dim Field_Name As String
If Pvttable.PivotFields(Field_Name).PivotItems(pvtitem.Name).Visible = True Then
另外若想取消之前所有的篩選,
除了使用For Each......Next之外
有其它更好方法嗎 ?
請多多指教
For Each pvtitem In Pvttable.PivotFields(Field_Name).PivotItems
Pvttable.PivotFields(Field_Name).PivotItems(pvtitem.Name).Visible = True
Next |
|