Activate Method

Applies To

Section object.

Description

Activates a specified section in the binder.

Syntax

expression.Activate

expression Required. An expression that returns a Section object.

Remarks

You can select several sections at the same time, but only one of them can be the active section. If you activate a hidden section, it becomes visible.

Use the SelectedSectionNames property to return or set the array of selected section names.

See Also

ActiveSection property.

Example

This example creates a new binder, adds a Microsoft Excel workbook and a Word document, and then activates the first section in the binder.

Set myBinder = CreateObject("Binder1.Binder")
myBinder.Visible = True
myBinder.Sections.Add Type:="Excel.Sheet"
myBinder.Sections.Add Type:="Word.Document"
myBinder.Sections(1).Activate