SelectedSectionNames Property

Applies To

Binder object.

Description

Returns or sets the array that contains the names of the selected sections. Read/write Variant.

Remarks

When you set the SelectedSectionNames property, the first section named in the array becomes the active section. If the array contains the name of a section that doesn't exist, an error occurs.

Example

This example displays the names of the selected sections in Binder1.obd.

Set myBinder = GetObject("C:\Binder1.obd", "OfficeBinder.Binder")
With myBinder
myarray = .SelectedSectionNames
MsgBox UBound(myarray) & " section is selected."
For x = 1 To UBound(myarray)
    MsgBox "The section name is " & myarray(x)
Next
End With