Refreshing all the pivot tables in my excel workbook with a macro

前端 未结 10 1338
长发绾君心
长发绾君心 2020-11-29 20:32

I have a workbook with 20 different pivot tables. Is there any easy way to find all the pivot tables and refresh them in VBA?

10条回答
  •  死守一世寂寞
    2020-11-29 20:56

    I have use the command listed below in the recent past and it seems to work fine.

    ActiveWorkbook.RefreshAll
    

    Hope that helps.

提交回复
热议问题