I have created a simple macro to toggle show/hide detail, but it does not work:
ActiveSheet.PivotTables("Table1").PivotFields("Items").ShowDetail = Not ActiveSheet.PivotTables("Table1").PivotFields("Items").ShowDetail
Please help! Thanks in advance!
ActiveSheet.PivotTables("Table1").PivotFields("Items").ShowDetail = Not ActiveSheet.PivotTables("Table1").PivotFields("Items").ShowDetail
Please help! Thanks in advance!