C
chaudi
Hi,
Does anyone know how to define a range for the source within a
pivottable. eg
ActiveSheet.PivotTableWizard SourceType:=xlDatabase, SourceData:= _
XXXXXXXXXX, TableDestination:="", TableName:="PivotTable4"
ActiveSheet.PivotTables("PivotTable4").AddFields
RowFields:="Level1"
ActiveSheet.PivotTables("PivotTable4").PivotFields("Duration").Orientation
= _
xlDataField
I would like to replace the XXXXXX with the UsedRange within a
worksheet.
Thanks
Does anyone know how to define a range for the source within a
pivottable. eg
ActiveSheet.PivotTableWizard SourceType:=xlDatabase, SourceData:= _
XXXXXXXXXX, TableDestination:="", TableName:="PivotTable4"
ActiveSheet.PivotTables("PivotTable4").AddFields
RowFields:="Level1"
ActiveSheet.PivotTables("PivotTable4").PivotFields("Duration").Orientation
= _
xlDataField
I would like to replace the XXXXXX with the UsedRange within a
worksheet.
Thanks