I have a bunch of PivotTables that can be filtered by Month and Year. I wrote a UserForm and macro to let a user change the filtered month and year with just a few clicks of a button. Unfortunately, it seems to have stopped working. I noticed that when I run the macro, it starts changing the actual list of months or years in the PivotTables. Here's the UserForm code:
And here's an example of the code I use for changing the PTs:Please Login or Register to view this content.
When I first started this, if I clicked the Month filter on any of those PTs, I could choose from 3 to 7. Now the only options are 5, 10, 11, and Month (which were all the different selections I made in the ComboBoxes). If I choose something other than those, the program throws an error. Basically, I think that when I change the month in the ComboBox and run the macro, it actually changes the contents of the PivotTables.Please Login or Register to view this content.
Any idea what's going on here and how I can fix this?
Bookmarks