Delete Method

Applies To

Section object.

Description

Deletes the specified Section object.

Syntax

expression.Delete

expression Required. An expression that returns a Section object.

Example

This example deletes the section named "Sums" in Binder1.obd. The example references the section by name, but you can also reference the section by number. You can permanently delete the section only after you've saved the binder.

Set myBinder = GetObject("C:\Binder1.obd", "OfficeBinder.Binder")
With myBinder
    .Sections("Sums").Delete
    .Save
End With