Hello folks, how's going? So I created this sheet that is meant to work as a database, and another one, which has this header and works as a filter. I came up with a macro that will automatically trigger the filter event when a criteria is selected, and if all the criteria spaces are blank, it erases all the data that it was previously filtered. That VBA code worked fine for me at the Excel 2013, but it's not working properly at the Excel 2016 (I'm getting an error message at the "If Application.WorksheetFunction.CountA(Range("$D$4:$H$4")) = 0 Then"). Is there any alternative that could use to achieve that same result? Thanks in advance (present code below):
Bookmarks