Pivot Table and Last Row

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to refresh a Pivot table to the last row in a Macro. Any Ideas

Here is what I have so far

Sub Refresh(

Sheets("PivotCharts").Selec
ActiveSheet.PivotTables("PivotTable11").RefreshTabl

End Su

Thanks in advance
Aaron
 
Are you trying to refresh the pivottable so it includes new data that
you've added to the source table? You can base the pivot table on a
dynamic range, which will automatically expand to include new items.
There are instructions here:

http://www.contextures.com/xlPivot01.html

Then, when you refresh the pivottable, the new data will be included.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top