Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Changing Pivot Range Programatically

Hi,
I'd like to change the range of cells that a pivot table
is referring to in code. Right now, when I record a macro
to do this, the resulting code utilizes the pivot wizard
but I've got to believe that there's a more direct way to
do this.

Thanks much,

Reney
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Changing Pivot Range Programatically

Use SourceData

PivotTableObj.SourceData = "NewlyResizedRangeName"


"Reney Langlois" wrote in message
...
Hi,
I'd like to change the range of cells that a pivot table
is referring to in code. Right now, when I record a macro
to do this, the resulting code utilizes the pivot wizard
but I've got to believe that there's a more direct way to
do this.

Thanks much,

Reney



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing font color of protected cells programatically Nigel Excel Discussion (Misc queries) 6 September 13th 08 12:32 PM
Programatically deleting Range Grant Reid Excel Programming 10 May 14th 04 03:07 PM
Changing what is displayed in an image control programatically Eric Kehr Excel Programming 2 April 27th 04 08:16 AM
Changing Pivot Table Range Rod[_7_] Excel Programming 4 April 10th 04 01:47 AM
Rename a Range, programatically? plh[_2_] Excel Programming 0 September 4th 03 05:11 PM


All times are GMT +1. The time now is 08:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"