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 Worksheet/Workbook Records<br />

5.98 SHEETPROTECTION<br />

BIFF2 BIFF3 BIFF4 BIFF5 BIFF8<br />

— — — — 0867 H<br />

This record is part of the worksheet/workbook protection (➜4.18). It stores additional options for sheet protection.<br />

<strong>The</strong>se settings are only available in <strong>Excel</strong> 10.0 (<strong>Excel</strong> XP) and later.<br />

Record SHEETPROTECTION, BIFF8:<br />

Offset Size Contents<br />

0 2 0867 H (repeated record identifier)<br />

2 9 Not used<br />

11 8 Unknown data: 02 H 00 H 01 H 00 H FF H FF H FF H FF H<br />

19 2 Option flags, see below (default: 4400 H )<br />

21 2 Not used<br />

<strong>The</strong> following flags specify, which actions are allowed while the sheet is protected. <strong>The</strong> state of object and scenario<br />

protection is also contained in the records OBJECTPROTECT (➜5.72) and SCENPROTECT (➜5.91). <strong>The</strong>se records<br />

are stored for compatibility to <strong>Excel</strong> 97 and <strong>Excel</strong> 2000.<br />

Option flags for sheet protection (a set bit specifies that the action is allowed):<br />

Bit Mask Contents Bit Mask Contents<br />

0 0001 H Edit objects 8 0100 H Delete columns<br />

1 0002 H Edit scenarios 9 0200 H Delete rows<br />

2 0004 H Change cell formatting 10 0400 H Select locked cells<br />

3 0008 H Change column formatting 11 0800 H Sort a cell range<br />

4 0010 H Change row formatting 12 1000 H Edit auto filters<br />

5 0020 H Insert columns 13 2000 H Edit PivotTables<br />

6 0040 H Insert rows 14 4000 H Select unlocked cells<br />

7 0080 H Insert hyperlinks<br />

208

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

Saved successfully!

Ooh no, something went wrong!