
Como efetuar o refresh para todas as pivot tables da minha planilha com VBA?
Simples assim:
Function RefreshPT dim w as worksheet, p as pivottable
ThisWorkbook.RefreshAll
Dim w as worksheet, p as pivottable
For each w in thisworkbook.worksheetsFor each p in w.pivottablesp.refreshtablep.updateNextNextEnd Function
Ou:
ThisWorkbook.RefreshAllDim w as worksheet, p as pivottableFor each w in thisworkbook.worksheetsFor each p in w.pivottablesp.refreshtablep.updateNextNext
Deixe os seus comentários! Envie este artigo, divulgue este link na sua rede social...
Tags: VBA, Pivot Table, Tabela, Dinâmica, Refresh,
