refresh all pivots in workbook vba excel code example Example: excel vba Refreshing all pivot tables in workbook ThisWorkbook.RefreshAll