The WBK object has properties and methods related to the active Origin Workbook. The object properties and methods can be accessed using the following syntax:

wbkObject.method (argument)


Besides WBK object, most of Workbook attributes can be accessed and changed by Page object. Also, many operations on workbook window can be done by Window command. More operations and examples, please refer to Basic Workbook Operation.


Property Access Description
wbk.DC Read/write Data Connector settings. See also: The Wbk.DC object properties.
wbk.saveData Read/write
Whether to save the imported data in the workbook when saving a project (as .opju) or workbook window (as .ogwu): 0 = exclude the imported data while other data (from typing, calculation or other performances) will remain, 1 = save the imported data


Method Description
wbk.open(sheetName) Open the embedded sheetName in a window. sheetName can be Notes, Graph or Matrix. For example, if you add a graph window as a worksheet to the current workbook by right clicking on a current worksheet tab and select menu item Add Graph as Sheet, and rename the worksheet as MyGraph, you can run

to open the graph in a separated window.


See Also

Wks Wbk.DC Wks.DC