Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am creating a pivottable in excel 2003 using VBA and
wanted it to reference two named ranges. How do you do that? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Turn on the macro recorder and create the pivot table manually, having it
refer to the two named ranges. When done, turn off the macro recorder. Look at the recorded code. Make adjustments as appropriate. -- Regards, Tom Ogilvy "John" wrote in message ... I am creating a pivottable in excel 2003 using VBA and wanted it to reference two named ranges. How do you do that? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In addition to Tom's excellent advice, note that you can create a Pivot
Table from multiple consolidation ranges, but you won't get the same pivot table layout that you'd get from a single range. There's an example he http://www.contextures.com/xlPivot08.html If possible, store your data in a single range, and you'll have more flexibility in creating the pivot table. John wrote: I am creating a pivottable in excel 2003 using VBA and wanted it to reference two named ranges. How do you do that? -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
PivotTable - multiple consolidation ranges | Excel Discussion (Misc queries) | |||
Excel 2007 PivotTable Named Sets as a filter | Excel Discussion (Misc queries) | |||
PivotTable - Multiple Consolidation Ranges | Excel Worksheet Functions | |||
Like 123, allow named ranges, and print named ranges | Excel Discussion (Misc queries) | |||
named ranges - changing ranges with month selected | Excel Programming |