XLA routines: EE_RefreshPivots
EE_RefreshPivots refreshes the pivot tables on a workbook
Sub EE_RefreshPivots(wbk As Workbook) Dim wks As Worksheet Dim pvtTbl As PivotTable 'http://excelexperts.com/xla-routines-eeRefreshPivots for updates on this sub routine For Each wks In wbk.Worksheets On Error Resume Next For Each pvtTbl In wks.PivotTables pvtTbl.RefreshTable pvtTbl.Update Next pvtTbl Err.Clear: On Error GoTo 0: On Error GoTo -1 Next wks Set wks = Nothing Set pvtTbl = Nothing End Sub
»
- Nick's blog
- Login or register to post comments
- 2850 reads
Recent comments
5 years 34 weeks ago
6 years 20 weeks ago
6 years 32 weeks ago
6 years 35 weeks ago
6 years 36 weeks ago
6 years 42 weeks ago
6 years 50 weeks ago
6 years 50 weeks ago
6 years 50 weeks ago
6 years 50 weeks ago