98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » update privotable
update privotable
Resolved · 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.
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Manually wrapping textTo manually wrap text, use the shortcut key Alt+Enter. |