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.33 DEFINEDNAME<br />
• Option Flags<br />
Bit Mask Flag name Contents<br />
0 0001 H hidden 0 = Visible 1 = Hidden<br />
1 0002 H func 0 = Command macro 1 = Function macro<br />
2 0004 H vbasic 0 = Sheet macro 1 = VisualBasic macro<br />
3 0008 H macro 0 = Standard name 1 = Macro name (see below)<br />
4 0010 H complex 0 = Simple formula 1 = Complex formula (array<br />
formula or user defined)<br />
5 0020 H builtin 0 = User-defined name 1 = Built-in name (see below)<br />
11-6 0FC0 H funcgroup Function group (BIFF4-BIFF8), only if macro = 1, must be >0 then<br />
1 = Financial<br />
2 = Date & Time<br />
3 = Math & Trig<br />
4 = Statistical<br />
5 = Lookup & Reference<br />
6 = Database<br />
7 = Text<br />
8 = Logical<br />
9 = Information<br />
10 = Commands<br />
11 = Customizing<br />
12 = Macro Control<br />
13 = DDE/External<br />
14 = User Defined<br />
12 1000 H binary 0 = Formula definition 1 = Binary data (BIFF5-BIFF8)<br />
• Macro Names<br />
If the macro flag in the option flags field is set to 1 (see above), the defined name specifies a macro function or<br />
procedure. <strong>The</strong> type of the macro is specified by the flags func, vbasic, and funcgroup (all these flags must be 0,<br />
if the defined name is not a macro).<br />
Command macros (macro = 1, func = 0) are shown in the “Select Macro” dialog of <strong>Excel</strong>. Function macros<br />
(macro = 1, func = 1) are shown in the “Insert Function” dialog of <strong>Excel</strong>. <strong>The</strong>y will be inserted into the function<br />
group specified by funcgroup. If the flag vbasic is set, the name refers to a macro in the VisualBasic project,<br />
otherwise to a sheet macro.<br />
• Built-In Names<br />
In BIFF2, the built-in names are written with their full name and differ in localised versions of <strong>Excel</strong>. From BIFF3 on<br />
only an index to a built-in names is stored. If the builtin flag of the option flags field is set (see above), the name<br />
string contains only one character with the following meaning:<br />
!<br />
Character Built-in name Character Built-in name<br />
Consolidate_Area Pint_Titles<br />
Auto_Open Recorder<br />
Auto_Close Data_Form<br />
Extract Auto_Activate (BIFF5-BIFF8)<br />
Database Auto_Deactivate (BIFF5-BIFF8)<br />
Criteria Sheet_Title (BIFF5-BIFF8)<br />
Print_Area _FilterDatabase (BIFF8)<br />
In BIFF5, the name “_FilterDatabase” (used to define filtered cell ranges) occurs as full name, not with its index.<br />
<strong>The</strong> builtin flag of the option flags field is not set for this name.<br />
159