I'm trying to update my pivot-tables with a macro,how can I avoid error400? here is my code:
[VBA]Sub RefreshPivotTables()
Dim pivotTable As pivotTable
For Each pivotTable In ActiveSheet.PivotTables
pivotTable.RefreshTable
Next
End Sub[/VBA]
Can anybody help me with that?