New feature! Upgrade and increase expert visibility of your issues with Priority Questions.
Public Sub UpdAllPivots() Dim shtThing As Worksheet Dim pvtThing As PivotTable For Each shtThing In Application.Sheets If shtThing.Name = "Center" Or shtThing.Name = "Sony" Or shtThing.Name = "Howard" Or shtThing.Name = "Conference" Then For Each pvtThing In shtThing.PivotTables pvtThing.ChangePivotCache ActiveWorkbook. _ PivotCaches.Create(SourceType:=xlDatabase, _ SourceData:="C:\Documents and Settings\shahryarm\Desktop\[Combined 09S 20090407v8.xlsm]Combined Grantee Main Data!R3C4:R50000C252", _ Version:=xlPivotTableVersion12) Next End If Next End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.