Is there syntax that would allow me to programmatically reset the included members of a field to “all of them”?
I want my pivot form to show all the members of a field on open. There’s lots of references showing how to include and exclude members, but I cannot find anywhere how to reset the form to include all of them. What I want to achieve is to wipe the pivot table’s memory clean from the settings that were left when it was last used. I’m thinking something like this (even though I know this doesn’t work).
frm1.PivotTable.ActiveView.RowAxis.FieldSets(“NewOrRet”).Fields(“NewOrRet”).IncludedMembers = all