Pivo Feldeigenschaften
31.03.2015 17:58:51
Merlin
wie kann ich die Feldeigenschaften der Pivo felder
Teilergebnisse auf Keine setzten ?
Viele Grüße, Merlin
Sub Pivot()
Dim Bereich As Range
Sheets("Übersicht").Activate
Set Bereich = ActiveSheet.UsedRange
Range(Bereich.Address).Select
ActiveSheet.PivotTableWizard SourceType:=xlDatabase, SourceData:= _
Bereich, TableDestination:="", TableName:="Pivot"
With ActiveSheet.PivotTables("Pivot")
.PivotFields("b").Orientation = xlRowField
.PivotFields("c").Orientation = xlRowField
.PivotFields("d").Orientation = xlRowField
.PivotFields("e").Orientation = xlRowField
.PivotFields("f").Orientation = xlRowField
.PivotFields("g").Orientation = xlRowField
.PivotFields("h").Orientation = xlRowField
.PivotFields("ij").Orientation = xlRowField
.PivotFields("k").Orientation = xlRowField
.PivotFields("l").Orientation = xlRowField
.PivotFields("m").Orientation = xlRowField
.PivotFields("n").Orientation = xlRowField
.AddDataField ActiveSheet.PivotTables("Pivot").PivotFields("o"), "Anzahl von o", xlCount
End With
End Sub