PDA

View Full Version : Change Pivot Table Data Source Using A Drop Down List



hanishgautam
07-05-2013, 09:33 AM
Sub ChangeDataSource()


With ActiveSheet.Shapes(Application.Caller).ControlForm at
ActiveSheet.PivotTables("PivotTable1").PivotTableWizard _
SourceType:=xlDatabase, SourceData:=.List(.Value)
End With


End Sub