Name

axis.BaseUnit [= setting]

Synopsis

For category axes with CategoryType set to xlTimeScale, sets the unit of time used by the axis. Can be one of the following xlTimeUnit constants:

xlMonths

xlDays

xlYears

This property is ignored if CategoryType is not xlTimeScale; and it causes an error if the axis is not a category axis.

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.