I am creating Pivot Table that has counts of different buckets. I am trying to consolidate various field for reporting.
Trying to duplicate record macro routine run into bugs.
Here is a snippet of code
I can't seem to find anything in this forum that addresses this. Any thoughts?
Trying to duplicate record macro routine run into bugs.
Here is a snippet of code
Code:
For Each pvtItem In PVTable.PivotFields("buckets").PivotItems
' MsgBox pvtItem.name
pvtItem.Visible = False
Next
' Group into larger bucket
.PivotSelect "buckets[c190,Q215,s191]", _
xlDataAndLabel + xlFirstRow, True
Selection.Group
.PivotFields("buckets2").PivotItems("Group1").Caption = "1st fails"
' 2nd Bucket
.PivotSelect "buckets[h193,L210]", _
xlDataAndLabel + xlFirstRow, True
Selection.Group
.PivotFields("buckets2").PivotItems("Group1").Caption = "2nd Fails"
I can't seem to find anything in this forum that addresses this. Any thoughts?
Last edited by a moderator: