Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi there,
I am not a VBA user and got code from a book to generate a pivottable from a macro. Now the problem is I want to assing the filter on column header ' Period' in the code and dont know which property to change. following is the code of the macro Sub CreatePivotFields() ActiveSheet.PivotTableWizard _ SourceType:=xlDatabase, _ SourceData:="'Source'!R1C1:R73C7", _ TableName:="Sales&Trans" With ActiveSheet.PivotTables("Sales&Trans") ..PivotFields("Year").Orientation = xlPageField ..PivotFields("Year").Position = 1 .. .. ..PivotFields("Period").Orientation = xlColumnField at this point i want to assign a filter to 'Period' so it only display period 'one' items in the pivot. thanks, |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is it possible to filter the data inside the series command? | Charts and Charting in Excel | |||
Event Macro running another macro inside | Excel Discussion (Misc queries) | |||
How to assign same code inside Option button code space ?? | Excel Programming | |||
using a cell value to control a counter inside a macro and displaying macro value | Excel Worksheet Functions | |||
Need macro to filter, create tab on filter and copy/paste | Excel Programming |