The Microsoft Excel File Format - OpenOffice.org
The Microsoft Excel File Format - OpenOffice.org
The Microsoft Excel File Format - OpenOffice.org
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
5.26 DATAVALIDATION<br />
5.26 DATAVALIDATION<br />
BIFF2 BIFF3 BIFF4 BIFF5 BIFF8<br />
— — — — 01BE H<br />
This record is part of the Data Validity Table (➜4.14). It stores data validity settings and a list of cell ranges which<br />
contain these settings. <strong>The</strong> “prompt box” appears while editing such a cell. <strong>The</strong> “error box” appears, if the entered value<br />
does not fit the conditions. <strong>The</strong> data validity settings of a sheet are stored in a list of DATAVALIDATION records<br />
which is preceded by a DATAVALIDATIONS record (➜5.27). If a string is empty and the default text should appear in<br />
the prompt box or error box, the string must contain a single zero character (string length will be 1).<br />
Record DATAVALIDATION, BIFF8:<br />
Offset Size Contents<br />
0 4 Option flags (see below)<br />
4 var. Title of the prompt box (Unicode string, 16-bit string length, ➜2.5.3)<br />
var. var. Title of the error box (Unicode string, 16-bit string length, ➜2.5.3)<br />
var. var. Text of the prompt box (Unicode string, 16-bit string length, ➜2.5.3)<br />
var. var. Text of the error box (Unicode string, 16-bit string length, ➜2.5.3)<br />
var. 2 Size of the formula data for first condition (sz1)<br />
var. 2 Not used<br />
var. sz1 Formula data for first condition (RPN token array without size field, ➜3)<br />
var. 2 Size of the formula data for second condition (sz2)<br />
var. 2 Not used<br />
var. sz2 Formula data for second condition (RPN token array without size field, ➜3)<br />
var. var. Cell range address list with all affected ranges (➜2.5.15)<br />
Option flags field:<br />
Bit Mask Contents<br />
3-0 0000000F H Data type: 00 H = Any value<br />
01 H = Integer values<br />
02 H = Decimal values<br />
03 H = User defined list<br />
6-4 00000070 H Error style: 00 H = Stop<br />
01 H = Warning<br />
02 H = Info<br />
04 H = Date<br />
05 H = Time<br />
06 H = Text length<br />
07 H = Formula<br />
7 00000080 H 1 = In list type validity the string list is explicitly given in the formula<br />
8 00000100 H 1 = Empty cells allowed<br />
9 00000200 H 1 = Suppress the drop down arrow in list type validity<br />
18 00040000 H 1 = Show prompt box if cell selected<br />
19 00080000 H 1 = Show error box if invalid values entered<br />
23-20 00F00000 H Condition operator: 00 H = Between<br />
01 H = Not between<br />
02 H = Equal<br />
03 H = Not equal<br />
04 H = Greater than<br />
05 H = Less than<br />
06 H = Greater or equal<br />
07 H = Less or equal<br />
In list type validity it is possible to enter an explicit string list. This string list is stored as tStr token (➜3.8.2). <strong>The</strong> string<br />
items are separated by zero characters. <strong>The</strong>re is no zero character at the end of the string list.<br />
Example for a string list with the 3 strings A, B, and C: “ABC” (contained in a tStr token, string<br />
length is 5).<br />
153