CategoryCount Property
The CategoryCount property returns the number of regular categories in a dimension or level.
Syntax
object .CategoryCount
Applies To
Discussion
This property only counts regular categories. Use the SpecialCategoryCount property to count root, drill, and special categories.
A COM exception is thrown in error situations. The message that is passed with the exception varies depending on the error situation.
Type
Long
Access
Read
Examples
objDateDrillDown = objModel.Dimensions("Years").DrillDowns(1)objLevel
= objDateDrillDown.Levels("Year") For intX = 1 To objLevel.CategoryCount