update privotable
RH

Forum home » Delegate support and help forum » Microsoft Excel Training and help » update privotable

update privotable

resolvedResolved · Medium Priority · Version 2016

Dayu has attended:
Excel VBA Introduction course
Excel VBA Intermediate course

update privotable

how to use vba to update privotable

RE: update privotable

Hello Dayu,

Thank you for your question. Here is some code which will update all Pivot Tables in your workbook:

Sub RefreshAllPivotTables()

Dim PT as PivotTable
Dim WS as Worksheet

For Each WS in Thisworkbook.Worksheets

For Each PT in WS.PivotTables

PT.RefreshTable

Next PT

Next WS

End Sub

I hope this works for you.

Kind regards
Marius Barnard
STL

Mon 4 Dec 2017: Automatically marked as resolved.


 

Excel tip:

Manually wrapping text

To manually wrap text, use the shortcut key Alt+Enter.

To cancel manual text wrapping, simply delete the new line.

View all Excel hints and tips


Server loaded in 0.06 secs.