Name Property
Applies To
Binder object, Section object.
Description
Binder object: Returns the file name of the binder, not including its path. Read-only String.
Section object: Returns or sets the name of the section, as displayed on the icon in the Binder pane. Read/write String.
Remarks
Use the Path property to return the location and the file name of the binder.
Example
This example sets the name of the second section in Binder1.obd to "Budget 95" and then saves the changes to the binder.
Set myBinder = GetObject("C:\Binder1.obd", "OfficeBinder.Binder")
If myBinder.Sections(2).Type = "Excel.Sheet.8" Then
myBinder.Sections(2).Name = "Budget 95"
MsgBox "Binder contents have changed."
End If
myBinder.Save