title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Axis.CategoryType property (Word) |
vbawd10.chm113049665 |
|
|
891a0cce-f5cb-6a8a-6216-fa6aaa1adac9 |
06/08/2017 |
medium |
Returns or sets the category axis type. Read/write XlCategoryType.
expression.CategoryType
expression A variable that represents an Axis object.
You cannot set this property for a value axis.
The following example sets the category axis for the first chart in the active document to use a time scale, using months as the base unit.
With ActiveDocument.InlineShapes(1)
If .HasChart Then
With .Chart.Axes(xlCategory)
.CategoryType = xlTimeScale
.BaseUnit = xlMonths
End With
End If
End With
[!includeSupport and feedback]