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.
4 Worksheet/Workbook Stream<br />
• Internal Names<br />
All internal names are stored in the Global Link Table in a list of DEFINEDNAME records (➜5.33). <strong>The</strong>re exist two<br />
types of internal names: global names which are valid in the whole workbook and local names which are attached to a<br />
specific sheet. For instance the local name “MyCell” of the sheet “Sheet1” can be used from everywhere in the<br />
workbook by entering =Sheet1!MyCell. Each DEFINEDNAME record contains the name itself and a one-based<br />
index to the preceding EXTERNSHEET records to indicate a local name, or the index zero to indicate a global name.<br />
Inside of a formula a global name or a local name of the own sheet is represented by the token tName (➜3.9.1) with a<br />
one-based index to the DEFINEDNAME record list. Local names from other sheets (with explicitly denoted sheet name)<br />
are represented by the token tNameX (➜3.9.14) with an index to a special EXTERNSHEET record and an index to the<br />
DEFINEDNAME record list.<br />
In defined names, only 3D references are allowed. <strong>The</strong> special syntax =! allowed in defined names only<br />
( being a 2D cell reference or range reference) makes it possible to refer to cells or ranges in the same<br />
sheet that contains the formula cell with the defined name.<br />
Example: A document contains the global name “GlobalName”, and the local names “Sheet1!LocalName” and<br />
“Sheet2!LocalName”. In “Sheet1” there are the formulas<br />
=GlobalName,<br />
=LocalName,<br />
=Sheet1!LocalName, and<br />
=Sheet2!LocalName.<br />
<strong>The</strong> defined name “GlobalName” contains the formula<br />
=!$A$1.<br />
<strong>The</strong> Global Link Table (together with the list of DEFINEDNAME records) contains the following records:<br />
EXTERNCOUNT Number of EXTERNSHEET records = 3<br />
EXTERNSHEET 1<br />
EXTERNSHEET 2<br />
EXTERNSHEET 3<br />
DEFINEDNAME 1<br />
DEFINEDNAME 2<br />
DEFINEDNAME 3<br />
Name = “” (Current sheet for defined names, ➜2.5.9)<br />
Name = “Sheet1”<br />
Name = “Sheet2”<br />
Name = “GlobalName”, EXTERNSHEET = 0 (Global)<br />
Formula = tRef3d token with EXTERNSHEET = –1 (negative<br />
one-based index to EXTERNSHEET 1, ➜3.9.15)<br />
Name = “LocalName”, EXTERNSHEET = 2 (Sheet1)<br />
Name = “LocalName”, EXTERNSHEET = 3 (Sheet2)<br />
<strong>The</strong> Local Link Table of Sheet1 contains the following records:<br />
EXTERNCOUNT Number of EXTERNSHEET records = 1<br />
EXTERNSHEET 1<br />
Name = “” (Unspecified sheet in own workbook, ➜2.5.9)<br />
<strong>The</strong> two former formulas contain a tNameV token each. <strong>The</strong> token in the first formula refers to DEFIN-<br />
EDNAME 1 and the token in the second formula to DEFINEDNAME 2.<br />
<strong>The</strong> two latter formulas contain a tNameXV token each. Both contain a reference to EXTERNSHEET 1 in the<br />
Local Link Table. <strong>The</strong> token in the third formula refers to DEFINEDNAME 2 and the last formula refers to<br />
DEFINEDNAME 3.<br />
102