vba - How do I Loop Through Excel Pivot Table's Secondary (Child) Fields? -
vba - How do I Loop Through Excel Pivot Table's Secondary (Child) Fields? -
my ultimate goal populate form treeview pivot table results, means have parent nodes , children nodes.
let's have next pivot table results (from table)
firstnames [+] bill [+] bob [-] charles charles jameson charles johnson charles smith [+] james [+] zachary when loop through mypivottable.pivotfields("firstnames").pivotitems, loop through "bill", "bob", "charles", "james", "zachary". gives me parent nodes, want children nodes (e.g. "charles jameson", "charles johnson", , "charles smith").
how can loop through kid fields?
the kid nodes have own names not considered "child nodes", they're peers. alter "pivotfields("firstnames")" portion these. suppose want them in context how associated result of pivot.
it might easier interact info in way need it, instead of relying on pivot table.
excel vba excel-vba treeview pivot-table
Comments
Post a Comment