hi guys,
I am new to vba and tried to create a macro which changes the pivot items on a specific pivot table based on the inputs in 2 cells (range called product1 or product2).
However, the code only works if i run the macro twice. I read that it could have something to do with refreshing the worksheet, but the codes i found online did not work for me.
The data for the pivot table comes from another worksheet within the same workbook, so no external connection.
![]()
Please Login or Register to view this content.
I suppose there are errors in my code. hope someone can help me out.
Thanks.
greetings,
michael
Bookmarks