Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to create a macro that creates a pivot table. Problem is
the # of rows of data is always variable (# of columns is always constant). Does the range of the Pivot table have to be explicitly defined, as below: ActiveSheet.PivotTableWizard SourceType:=xlDatabase, SourceData:= _ "'Data'!*R1C1:R2500C42*", Or can the RC:RC reference be variable, and depend on the # of rows? I have tried concatenating the RC:RC reference, such as: "'Data'!R1C1:R" & x & "C42", where x = rowcount(Columns("A:A")) (rowcount is a UDF that counts the # of rows of data). But that doesn't work. Any ideas anyone? --- Message posted from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
colating multi rows of data into single rows - no to pivot tables! | Excel Worksheet Functions | |||
always display rows in Pivot tables (show items with no data) | Excel Discussion (Misc queries) | |||
Putting data into pivot tables in columns not rows. | Excel Discussion (Misc queries) | |||
Combining Pivot Tables - Summarising data from 100,000 rows | Excel Discussion (Misc queries) | |||
Pivot Tables: How do I show ALL field rows, including empty rows?? | Excel Worksheet Functions |