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