07.05.2014 Views

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4 Worksheet/Workbook Stream<br />

4.10 Internal and External References<br />

This chapter describes all types of 3D and external references. In detail, this could be:<br />

• A reference to a cell or a cell range of another sheet in the same workbook (3D reference);<br />

• A reference to a cell or a cell range of a sheet in another workbook (external reference);<br />

• A reference to a global or local defined name (internal name);<br />

• A reference to a defined name in another workbook (external name);<br />

• An external function (add-in, sheet macro, Basic macro);<br />

• A DDE link;<br />

• An OLE link.<br />

For external references and external names a combination of XCT and CRN records will occur. <strong>The</strong>se records store<br />

values of cells of the document. If the external document cannot be found, these values will be used to get the result of<br />

an external reference. An XCT record (➜5.114) contains the number of following CRN records. A CRN record (➜5.23)<br />

stores the contents of one cell or a sequence of cells of one row. Fragmentary cell ranges or cell ranges spanning over<br />

more than one row are split into several CRN records. 3D references do not use these records because the referenced<br />

cells are located in the own document.<br />

It is possible to determine whether the cached cell values (the XCT and CRN records) will be stored in the file. In BIFF3<br />

and BIFF4 this option is stored in the SHEETPR record (➜5.97). From BIFF5 on the optional record BOOKBOOL<br />

(➜5.9) contains this option.<br />

For all the following examples an external document “example.xls” is used. It contains 3 sheets named “ExtSheet1”,<br />

“ExtSheet2” and “ExtSheet3”.<br />

98

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!