Skip to content

Latest commit

 

History

History
50 lines (25 loc) · 1.09 KB

c65ca7a4-59b1-6b15-116a-f76007fbd4be.md

File metadata and controls

50 lines (25 loc) · 1.09 KB

ChartGroup.SplitType Property (Excel)

Returns or sets the way the two sections of either a pie of pie chart or a bar of pie chart are split. Read/write XlChartSplitType .

Syntax

expression . SplitType

expression A variable that represents a ChartGroup object.

Remarks

| XlChartSplitType can be one of these XlChartSplitType constants.| | xlSplitByCustomSplit| | xlSplitByPercentValue| | xlSplitByPosition| | xlSplitByValue|

Example

This example must be run on either a pie of pie chart or a bar of pie chart. The example splits the two sections of the chart by value, combining all values under 10 in the primary pie and displaying them in the secondary section.

With Worksheets(1).ChartObjects(1).Chart.ChartGroups(1) 
 .SplitType = xlSplitByValue 
 .SplitValue = 10 
 .VaryByCategories = True 
End With

See also

Concepts

ChartGroup Object

Other resources

ChartGroup Object Members