user559142
user559142

Reputation: 12517

Populating pivot table using VBA

I have a pivot table already set up in a worksheet(sheetA). On a separate worksheet (sheetB) I have data. I manually populate this pivot table on a daily basis (using pivottable wizard and dragging data range).

Is there a way using vba to select this pivot table on sheetA and then populate it with a range of data from the sheetB?

Upvotes: 0

Views: 1375

Answers (1)

Master Uv Puppetz
Master Uv Puppetz

Reputation: 93

VBA can certainly do this task. But an easier way is to make your pivot table based on a named range. Just change the dimensions of the range and right click->Refresh Table will do the job for you.

Upvotes: 0

Related Questions