View Full Version : Solved: Adding sourcedata to Pivottable
vosmerkin
04-24-2008, 10:37 PM
Hello
I have workbook with 3 (for now) sheets. First contains PivotTable. Source ranges for this table are on each of the other sheets. Each month new sheet appears. I need to update data sources for PivotTable.
Please advice
dominicb
04-25-2008, 02:27 AM
Good morning vosmerkin
I assume that you're using the Multiple consolidation ranges option on the pivot table menu? If so, right click on your pivot table and select pivot table wizard from the menu. Click on Back, and it will bring up the dialog that allows you to add an extra range to your table.
HTH
DominicB
vosmerkin
04-28-2008, 09:33 PM
Hi, thanks for replay. I needed to do it with code. I've already found solution
pv.SourceData = sd
where sd is variant to dimensional array with ranges and its names (as I want to se it in pivottable)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.