ExitOpenMode Method
Applies To
Binder object.
Description
Closes the host application and returns to Microsoft Office Binder.
Syntax
expression.ExitOpenMode
expression Required. An expression that returns a Binder object.
See Also
ViewOpenMode method.
Example
This example adds a new Microsoft Excel workbook to the binder and opens the new section in the host application (Microsoft Excel). It adds the number 45 to a range in a worksheet and then closes the host application and saves the new binder file.
Set newbinder = GetObject("C:\Binder2.obd", _
"Office.Binder")
newbinder.ViewOpenMode
Set newSection = newbinder.Sections.Add(Type:="Excel.Sheet")
With newSection
.Object.Worksheets(1).Range("a1").Value = 45
End With
newbinder.ExitOpenMode
newbinder.Close _
savechanges:=True, FileName:="changed.obd"