View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Jim Thomlinson Jim Thomlinson is offline
external usenet poster
 
Posts: 5,939
Default RefreshAll pivot tables but query

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
--
HTH...

Jim Thomlinson


"Greg" wrote:

hi,

is there a way to use

ThisWorkbook.RefreshAll

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

Thanks,
--
______
Regards,
Greg