The Microsoft Excel File Format - OpenOffice.org
The Microsoft Excel File Format - OpenOffice.org
The Microsoft Excel File Format - OpenOffice.org
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
5 Worksheet/Workbook Records<br />
5.58 HYPERLINK<br />
BIFF2 BIFF3 BIFF4 BIFF5 BIFF8<br />
— — — — 01B8 H<br />
In <strong>Excel</strong>, every cell may contain a hyperlink. <strong>The</strong> HYPERLINK record refers to one cell address or a cell range where all<br />
cells contain the same hyperlink. It is part of the Hyperlink Table in the Sheet Substream (➜4.13). Every hyperlink can<br />
contain a text mark and a description that is shown in the sheet instead of the real link. Text marks are appended behind<br />
a link, separated by the hash sign (“#”).<br />
Examples for text marks: www.example.<strong>org</strong>#table1 or C:\example.xls#Sheet1!A1.<br />
Inside of this record strings are stored in several formats. Sometimes occurs the character count, otherwise the character<br />
array size (in 16-bit character arrays the character count is half of the array size). Furthermore some strings are zeroterminated,<br />
others not. <strong>The</strong>y are stored either as 16-bit character arrays or as 8-bit character arrays, independent of the<br />
characters.<br />
5.58.1 Common Record Contents<br />
Each HYPERLINK record starts with the same data items and continues with special data related to the current type of<br />
hyperlink. It starts with a cell range. Each cell of this range will contain the same hyperlink.<br />
Record HYPERLINK, BIFF8:<br />
Offset Size Contents<br />
0 8 Cell range address of all cells containing this hyperlink (➜2.5.14)<br />
8 16 GUID of StdLink:<br />
D0 H C9 H EA H 79 H F9 H BA H CE H 11 H 8C H 82 H 00 H AA H 00 H 4B H A9 H 0B H<br />
(79EAC9D0-BAF9-11CE-8C82-00AA004BA90B)<br />
24 4 Unknown value: 00000002 H<br />
28 4 Option flags (see below)<br />
[32] 4 (optional, see option flags) Character count of description text, including trailing zero word<br />
(dl)<br />
[36] 2∙dl (optional, see option flags) Character array of description text, no Unicode string header,<br />
always 16-bit characters, zero-terminated<br />
[var.] 4 (optional, see option flags) Character count of target frame, including trailing zero word<br />
(fl)<br />
[var.] 2∙fl (optional, see option flags) Character array of target frame, no Unicode string header,<br />
always 16-bit characters, zero-terminated<br />
var. var. Special data (➜5.58.2 and following)<br />
[var.] 4 (optional, see option flags) Character count of the text mark, including trailing zero word<br />
(tl)<br />
[var.] 2∙tl (optional, see option flags) Character array of the text mark without “#” sign, no Unicode<br />
string header, always 16-bit characters, zero-terminated<br />
<strong>The</strong> special data parts in the following are described with relative offsets (starting again by zero). <strong>The</strong> real offset inside<br />
of the record data (without header) is either 32 (without description) or 36+2∙dl (with description).<br />
182