My data is always changing but I never need blanks within the filter. Id like to uncheck blanks each and every time I refresh my pivot table. The below code works great within a table but, It will not work on a pivot table. I receive a 400 error code. Can someone help me manipulate the code to work with a pivot table.
Sub FilterDynamicRng1() 'Excel VBA dynamic range
Range("a1", Range("a" & Rows.Count).End(xlUp)).AutoFilter 1, "<>"
End Sub
Sub FilterDynamicRng1() 'Excel VBA dynamic range
Range("a1", Range("a" & Rows.Count).End(xlUp)).AutoFilter 1, "<>"
End Sub