Axis.BaseUnit Property
Returns or sets the base unit for the specified category axis. Read/write [XlTimeUnit#SameCHM].
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property BaseUnit As XlTimeUnit
Get
Set
'Usage
Dim instance As Axis
Dim value As XlTimeUnit
value = instance.BaseUnit
instance.BaseUnit = value
XlTimeUnit BaseUnit { get; set; }
Property Value
Type: Microsoft.Office.Interop.PowerPoint.XlTimeUnit
Remarks
Setting this property has no visible effect if the CategoryType property for the specified axis is set to xlCategoryScale. The set value is retained, however, and takes effect when the CategoryType property is set to xlTimeScale.
You cannot set this property for a value axis.
Examples
This example sets the category axis for the first chart in the active document to use a time scale, with months as the base unit.
With ActivePresentation.Slides(1).Shapes(1)
If .HasChart Then
With .Chart
.Axes(xlCategory).CategoryType = xlTimeScale
.Axes(xlCategory).BaseUnit= xlMonths
End With
End If
End With