PivotField.AutoSortCustomSubtotal Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an integer corresponding to the custom subtotal used to sort the specified PivotTable field automatically. Read-only.
public:
property int AutoSortCustomSubtotal { int get(); };
public int AutoSortCustomSubtotal { get; }
Public ReadOnly Property AutoSortCustomSubtotal As Integer
Property Value
Integer
Remarks
The default value is 1 (Automatic). When the AutoSortCustomSubtotal property is set to 1 (Automatic), the data is sorted by the regular subtotals. The AutoSortCustomSubtotal property can have one of the index values listed in the following table.
1 | Automatic |
2 | Sum |
3 | Count |
4 | Average |
5 | Max |
6 | Min |
7 | Product |
8 | Count Nums |
9 | StdDev |
10 | StdDevp |
11 | Var |
12 | Varp |
Sorting is supported only by custom subtotals that are actually displayed in the PivotTable, so trying to set AutoSortCustomSubtotal to a value representing a custom subtotal not in the PivotTable view will return a run-time error.
If sorting is applied based on a custom subtotal, and that subtotal is removed from the PivotTable, the AutoSortCustomSubtotal property will automatically be set to the default value (1).
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기