Hi,
I am trying to write a macro to get the number of rows and columns in a pivot table and then transfer that macro into Delphi. I can interact with pivottables using say
NoColsSFInPivot1 := Excel.ActiveSheet.PivotTablesPivotTableName).datafields.count;
which counts the datafields in the PT, but how can I count the number of rows and the number of columns?
Thanks
Paul
I am trying to write a macro to get the number of rows and columns in a pivot table and then transfer that macro into Delphi. I can interact with pivottables using say
NoColsSFInPivot1 := Excel.ActiveSheet.PivotTablesPivotTableName).datafields.count;
which counts the datafields in the PT, but how can I count the number of rows and the number of columns?
Thanks
Paul