Count Property

Applies To

Sections collection object.

Description

Returns the number of items in the Sections collection. Read-only Long.

Remarks

All sections, whether visible or hidden, are included in the count.

Example

This example displays the number of sections in Binder1.obd.

Set myBinder = GetObject("C:\Binder1.obd", "OfficeBinder.Binder")
MsgBox "There are " & myBinder.Sections.Count & _
    " sections in the binder named: " & myBinder.Name