#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default 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
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
how to create pivot table from existing pivot table in excel 2007 Udayraj Dhulekar Excel Discussion (Misc queries) 2 July 8th 13 08:22 PM
Pivot Table and Pivot Table dates are not in correct order ls Charts and Charting in Excel 3 July 14th 09 04:02 PM
Print Pivot Table headers on pages with Pivot Table tsgoose Excel Worksheet Functions 0 December 9th 08 08:14 PM
Copying values from pivot table to cells outside pivot table richzip Excel Discussion (Misc queries) 4 January 16th 08 11:03 PM
Help required with setting up a pivot table with the source on sheet1 to have the pivot table created on sheet called "report" Diana[_5_] Excel Programming 0 August 21st 03 10:19 PM


All times are GMT +1. The time now is 09:46 PM.

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"