So I ran into a problem. I built my spreadsheet and thought it was good to go, but...
So I have 2 sheets named "review sheet" and "data". The data sheet has my raw data in a table. I created a pivot table off that data to only show the person's name once (remember there are multiple rows for a person with different attributes in each row). I used that pivot table to create a drop down box in the review sheet. I hit my buttons and everything is fine. However, when I right click and refresh the pivot table, I will get an Runtime error 1004 when I hit my button that runs my advanced filter macro that says "Advancedfilter method of Range Class failed". I don't really understand VB, but when i debug it shows my macro with the 2 lines above "End Sub" in yellow with a yellow arrow pointing to the latter of the 2 lines.
When I refreshed the pivot table, none of the data changes the ranges to invalidate the range cells in the macro.
Any thoughts?
I tried to look at your spreadsheet as I thought the "Create Emp Id" button would work. But when I looked at the code, I had no idea what to do. So I searched online and found the pivot table idea, which got me to the same result...but then I got that error.
By the way, I can't upload the spreadsheet because there is sensitive data in it.
Thanks!
Bookmarks