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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.99 SORT<br />

5.99 SORT<br />

BIFF2 BIFF3 BIFF4 BIFF5 BIFF8<br />

— — — 0090 H 0090 H<br />

This record stores the last settings from the “Sort” dialogue for each sheet. <strong>The</strong>se settings are not attached to a cell range<br />

in the sheet, that means, it is not possible to determine the cell range sorted with the settings of this record.<br />

Record SORT, BIFF5:<br />

Offset Size Contents<br />

0 2 Option flags, see below<br />

2 1 Length of first sort key (character count, l1)<br />

3 1 Length of second sort key (character count, l2)<br />

4 1 Length of third sort key (character count, l3)<br />

5 l1 Character array of first sort key<br />

[5+l1] l2 (optional) Character array of description text<br />

[5+l1+l2] l3 (optional) Character array of help topic text<br />

var. 1 Not used<br />

Record SORT, BIFF8:<br />

Offset Size Contents<br />

0 2 Option flags, see below<br />

2 1 Length of first sort key (character count, l1)<br />

3 1 Length of second sort key (character count, l2)<br />

4 1 Length of third sort key (character count, l3)<br />

5 var. First sort key (Unicode string without length field, ➜2.5.3)<br />

[var.] var. (optional, only if l2 > 0) Second sort key (Unicode string without length field, ➜2.5.3)<br />

[var.] var. (optional, only if l3 > 0) Third sort key (Unicode string without length field, ➜2.5.3)<br />

var. 1 Not used<br />

Option flags, BIFF5-BIFF8:<br />

Bit Mask Contents<br />

0 0001 H 0 = Sort rows (top-to-bottom) 1 = Sort columns (left-to-right)<br />

1 0002 H 0 = Sort first key in ascending order 1 = Sort first key in descending order<br />

2 0004 H 0 = Sort second key in ascending order 1 = Sort second key in descending order<br />

3 0008 H 0 = Sort third key in ascending order 1 = Sort third key in descending order<br />

4 0010 H 0 = Sort case-insensitive 1 = Sort case-sensitive<br />

9-5 03E0 H One-based index into the table of defined sort lists, or 0 for sorting without a list<br />

209

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

Saved successfully!

Ooh no, something went wrong!