View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson[_3_] Dave Peterson[_3_] is offline
external usenet poster
 
Posts: 2,824
Default Changing Pivot Table Range

The easiest way may be to use a dynamic range.

Debra Dalgleish has some nice notes at:
http://www.contextures.com/xlNames01.html#Dynamic



Rod wrote:

Hi,

I have a pivot table based on a worksheet range. I would
like to be able to change the source range thru VBA. I
know I can use the PivotTableWizard method, but I would
prefer to manipulate the appropriate objects and
properties myself. All the help topics I can find only
use the PivotTableWizard. Is there some other way that I
can use to enlarge or shrink the range on a worksheet that
the pivot table gets it's data from ?

Any assistance appreciated.

RodT.


--

Dave Peterson