ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Worksheet_Activate event question (https://www.excelbanter.com/excel-programming/364728-worksheet_activate-event-question.html)

Barb Reinhardt

Worksheet_Activate event question
 
I have the following short macro that I want to put in a worksheet activate
event.


Range("A9").Select
ActiveSheet.PivotTables("PivotTable4").PivotCache. Refresh
Calculate
Selection.AutoFilter Field:=3, Criteria1:="#N/A"

I keep getting Autofilter method of range class failed.

What do I need to change?

Thanks,
Barb Reinhardt


All times are GMT +1. The time now is 12:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com