Hi,
I'm learning to use power automate and I have an issue when trying to filter a pivot table with a Macro but when I call the Macro in power automate do not filter. When I run the Macro in excel VBA it works perfectly.
I Try renaming the macro, using parameters for the macro, killing all the Excel process.
Public Sub PivotsRefreshFilter()
Sheets("Pivot").Select
ActiveSheet.PivotTables("PivotTable1").ClearAllFilters
ActiveSheet.PivotTables("PivotTable1").PivotFields("Filter").ClearAllFilters
ActiveSheet.PivotTables("PivotTable1").PivotFields("Filter").CurrentPage = _
"Last Closure"
End Sub


Thanks,
Terry S.