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
With ActiveSheet.Shapes(Application.Caller).ControlForm at
ActiveSheet.PivotTables("PivotTable1").PivotTableWizard _
SourceType:=xlDatabase, SourceData:=.List(.Value)
End With
End Sub