ViewOpenMode Method
Applies To
Binder object.
Description
Displays the active section of the specified binder within the section's host application.
Syntax
expression.ViewOpenMode
expression Required. An expression that returns a Binder object.
Remarks
If the host application isn't available or isn't installed, an error will occur.
See Also
ExitOpenMode 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"