Hi Guys,
Can't seem to use source data properly.
Simply put, I copy and paste an matrix of data into an area which already has a pivottable associated with it. If I just do a PT refreshtable then I might miss some new data that is now outside the range (on rows only) so I thought this might work:
For Each PT In Sheet.PivotTables
PT.SourceData = Range(Cells(18, 1), Cells(18, 1).End(xlDown).Offset(0, 4))
PT.RefreshTable
Next PT
ie Set sourcedata to a18
all rows below it)
But this isn't the correct use of sourcedata.
Any quick suggestions?
Thanks.
Ig
Can't seem to use source data properly.
Simply put, I copy and paste an matrix of data into an area which already has a pivottable associated with it. If I just do a PT refreshtable then I might miss some new data that is now outside the range (on rows only) so I thought this might work:
For Each PT In Sheet.PivotTables
PT.SourceData = Range(Cells(18, 1), Cells(18, 1).End(xlDown).Offset(0, 4))
PT.RefreshTable
Next PT
ie Set sourcedata to a18
But this isn't the correct use of sourcedata.
Any quick suggestions?
Thanks.
Ig