Hi,
I have a code that filters out every possible filter for a pivot table and copy specific values to other sheet.
It works fine, but it has suddenly crashed already twice.
It goes like this:
- Everything works fine;
- Suddenly, without any logic, error appears in a middle of code doing its work. It loops through approx. 40 filters out of 70 and then crashes;
- From now on, it will continue to crash at the same place;
- If I will copy all data and file structure to a new workbook and will apply the same code, it will again work (due this I don't see any logic, why the code crashes).
Any idea what this might be related to? New sheets added to workbook? New pivots created in a workbook?
Code below (yellow - line where error appears):
![]()
Please Login or Register to view this content.
Bookmarks