Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

MajorUnitScale Property

Last modified: June 30, 2011

Applies to: Excel 2013 | Office 2013 | VBA

Returns or sets the major unit scale value for the category axis when the CategoryType property is set to xlTimeScale. Read/write XlTimeUnit .

XlTimeUnit can be one of these XlTimeUnit constants.

xlDays

xlMonths

xlYears

expression.MajorUnitScale

expression Required. An expression that returns one of the objects in the Applies To list.

This example sets the category axis to use a time scale and sets the major and minor units.

With myChart.Axes(xlCategory) 
 .CategoryType = xlTimeScale 
 .MajorUnit = 5 
 .MajorUnitScale = xlDays 
 .MinorUnit = 1 
 .MinorUnitScale = xlDays 
End With
Show:
© 2015 Microsoft