Hi!
Can anybody please explain to me, what does the following part of code do?
![]()
Please Login or Register to view this content.
It is a part of a macro that loops through every PivotItem in the PageField (Filter) of the Pivot Table, returns data and copy the data on new sheet for each PivotItem.
If I don't run the code above, there is no problem - the pivot table is filtered and I get a new sheet for each PivotItem in the PageField. But when I run the code, I get a "Run-time error 9: Subscription out of Range".
The reason for this error is the line
So I'd just like to know, what is the purpose of this code and how can I fix it, because I do not have much experience using the codes in Excel.![]()
Please Login or Register to view this content.
Posted also on MrExcel
Bookmarks