Powerpivot VBA: How to set a single Pivotitem visible=false

Unanswered Powerpivot VBA: How to set a single Pivotitem visible=false

  • 2012年8月2日 9:16
     
     

    Dear all,

    I use PowerPivot to consolidate my data due to the amount of data for my analysis. Unfortunately I can't figure out how to set a single PivotItem.visible = false like it would work with VBA and normal PivotTables.

    I thought it should look like this :

    ActiveSheet.PivotTables("PivotTable1").PivotFields("[Import].[K].[K]").PivotItem("[Import].[K].&[C]").Visible = False

    which returned Error 438 - object doesn't support attribute or method.

    Does anybody know how to fix it?

    Thank you very much in advance!!
    Best regards


    • 編集済み nrvxs 2012年8月4日 5:52
    •  

すべての返信