Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 977 Bytes

Word.Axis.CategoryType.md

File metadata and controls

50 lines (31 loc) · 977 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Axis.CategoryType property (Word)
vbawd10.chm113049665
vbawd10.chm113049665
Word.Axis.CategoryType
891a0cce-f5cb-6a8a-6216-fa6aaa1adac9
06/08/2017
medium

Axis.CategoryType property (Word)

Returns or sets the category axis type. Read/write XlCategoryType.

Syntax

expression.CategoryType

expression A variable that represents an Axis object.

Remarks

You cannot set this property for a value axis.

Example

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]