RefreshAll pivot tables but query

  • Thread starter Thread starter Greg
  • Start date Start date
G

Greg

hi,

is there a way to use

ThisWorkbook.RefreshAll

to refresh all pivot tables in the workbook but leave a query "unrefreshed"?

Thanks,
 
Nope... You can traverse through all of the sheets and all of the pivot tbles
on those sheets refreshing each something like this...

sub RefreshPivotTables
dim wks as worksheet
dim pvt as pivottable

for each wks in worksheets
for each pvt in wks.pivottables
pvt.refreshtable
next pvt
next wks
end sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top