Quantcast
Channel: NAV/Navision Classic Client — mibuso.com
Viewing all articles
Browse latest Browse all 2239

Pivot table - How to hide subtotals?

$
0
0
Hi!
I'm making a excel pivot table out from Nav (5)
Everything works fine, but i need subtotals to be hidden.
Can anyone post the exact C/AL code for it?
In VB it is:
ActiveSheet.PivotTables("PivotTable1").PivotFields("My Field").Subtotals = _
        Array(False, False, False, False, False, False, False, False, False, False, False, False)

IN C/AL :
xlPivotField := xlPivotTable.PivotFields('My Field');
xlPivotField.Orientation := 1;
xlPivotField.Position     := 1;
xlPivotField.Subtotals   := ???;

Viewing all articles
Browse latest Browse all 2239

Trending Articles