Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Pivot table
Hi there again,
Does anyone know how to make a selection for a pivot table variable accor5ding tot the actual number of lines in the sourcefile? Specificalle this piece of code: .......siteOrder'!R1C1:R2450C6" ---------------------------------------------------------------------------- -------------------- Workbooks(MyVar).Activate ActiveSheet.PivotTableWizard SourceType:=xlDatabase, SourceData:= _ "'[Item_Master_Sheet_20030828.xls]Sheet_for_siteOrder'!R1C1:R2450C6" _ , TableDestination:="R1C1", TableName:="PivotTable1" ActiveSheet.PivotTables("PivotTable1").AddFields RowFields:= _ "Current Item Number in Logistics", ColumnFields:= _ "User Item Type (Productgroup)" With ActiveSheet.PivotTables("PivotTable1").PivotFields ( _ "Current Item Number in Logistics") .Orientation = xlDataField .Name = "Sum of Current Item Number in Logistics" .Function = xlSum End With ---------------------------------------------------------------------------- -------------------- Would appreciate suggestions. regards Ruud |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how to create pivot table from existing pivot table in excel 2007 | Excel Discussion (Misc queries) | |||
Pivot Table and Pivot Table dates are not in correct order | Charts and Charting in Excel | |||
Print Pivot Table headers on pages with Pivot Table | Excel Worksheet Functions | |||
Copying values from pivot table to cells outside pivot table | Excel Discussion (Misc queries) | |||
Help required with setting up a pivot table with the source on sheet1 to have the pivot table created on sheet called "report" | Excel Programming |