Hi,
I am trying to perform pivot table using macro, however it seems like the pivot row axis and pivot lines are not the same value when you have different amount of data. for example , the following code will not work if I change the PivotRowAxis.PivotLines(300) , which orginally should be 210.
Is there any way to define the range?
Thanks!
I am trying to perform pivot table using macro, however it seems like the pivot row axis and pivot lines are not the same value when you have different amount of data. for example , the following code will not work if I change the PivotRowAxis.PivotLines(300) , which orginally should be 210.
Code:
ActiveSheet.PivotTables("PivotTable2").PivotFields("BidClient").AutoSort _
xlDescending, "Sum of Volume", ActiveSheet.PivotTables("PivotTable2"). _
PivotColumnAxis.PivotLines(300), 1 '
Thanks!