3

Is there an event corresponding to the data refresh of a pivot table? I have found the

    worksheet_pivottableupdate
event but this seems to be called everytime I change filters or manipulate the pivottable (which is quite frequently with my macros). What I need is just to capture when the underlying data is updated. Any way to do this?

2
  • 2
    what about using the worksheet_change event of the sheet where the source data is located? Commented Aug 21, 2012 at 15:45
  • Have you got an example of that? Commented Oct 28, 2016 at 21:44

1 Answer 1

2

One way to tackle this is to use the pivottableupdate event, and combine it with checking that the following pivot-table property has changed.

PivotTables("PivotTable1").RefreshDate

See http://msdn.microsoft.com/en-us/library/ff834610(v=office.14).aspx for more information on the RefreshDate property.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.