Object Property

Applies To

Section object.

Description

Returns the OLE object associated with the specified section. Read-only.

Remarks

Use this property to access the contents of the specified section (for example, the value of cell A1 on a Microsoft Excel worksheet) and all the objects, methods, and properties of the application that created the section.

Example

This example displays the value of the cell named "GrandTotal" on worksheet one in the section named "Revenue 96" in Binder1.obd.

Set myBinder = GetObject("C:\Binder1.obd", "OfficeBinder.Binder")
myBinder.Visible = True
total = myBinder.Sections("Revenue 96").Object.Range("GrandTotal")
MsgBox "The grand total for 1996 is " & total