Good Afternoon All,
I am hoping this is a simple query.
I am using the code below to update a pivot table after information has been added into the pivot tables source in access. Also I have 2 tables on the same sheet that holds data I want to update when the Pivot updates.
Is there anyway I can write code that will also update the tables in the sheet or would I have to write 1 for each table. Sorry to be a pain, but this is new to me and I am unsure the best way to do this. I would use the update function on the table but it doesnt seem to refresh.
Many thanks
Gavin
I am hoping this is a simple query.
I am using the code below to update a pivot table after information has been added into the pivot tables source in access. Also I have 2 tables on the same sheet that holds data I want to update when the Pivot updates.
Is there anyway I can write code that will also update the tables in the sheet or would I have to write 1 for each table. Sorry to be a pain, but this is new to me and I am unsure the best way to do this. I would use the update function on the table but it doesnt seem to refresh.
Code:
Sub Update_Pivot()
Dim xTable As PivotTable
For Each xTable In Application.ActiveSheet.PivotTables
xTable.RefreshTable
Next
End Sub
Many thanks
Gavin