I would like to know a relatively simple vba snippet to change an existing pivot tables datasource. Macro recording doesn't reveal anything (just blank with the exception of a cell selection)
I've tried this with errors..
Worksheets("Pivot").PivotTables("Pivot_1").PivotCache.DataSource = _
Range("A2:B10")
I really appreciate any help - thanks
I've tried this with errors..
Worksheets("Pivot").PivotTables("Pivot_1").PivotCache.DataSource = _
Range("A2:B10")
I really appreciate any help - thanks