Restituisce o sets a value that indicates whether BIFF8 SaveAs raggruppa le celle che condividono una formula modello in record SHRFMLA nativi ($04BC). Quando True, le colonne di formule come =A1*B1, =A2*B2, ..., =A99*B99 are grouped automatically into a single shared template plus per-cell deltas, matching Microsoft Excel's compact wire format e reducing file size by 30–60% on template-heavy sheets. Read/write boolean. (Default value is False, available since v2.31.0.)
Sintassi
proprietà UseSharedFormulas: Boolean;
Osservazioni
Grouping is column-down, contiguous, e template-based: only cells in the same column with consecutive rows e PTG-equivalent formulas are grouped. Cells with array formulas o merged-cell flags are excluded. The reading side is unaffected because HotXLS has always read SHRFMLA records correctly, so workbooks round-trip cleanly between HotXLS, Microsoft Excel, e other BIFF8 readers regardless of which side emits the shared form
Il valore predefinito è False, mantenendo invariata l'emissione esistente dei record FORMULA per singola cella, così le applicazioni che non toccano mai il setter si comportano esattamente come prima della v2.31.0
Esempio
Questo esempio abilita una cartella di lavoro all'emissione di formule condivise prima del salvataggio come file .xls BIFF8
Workbook.UseSharedFormulas := True;
Workbook.SaveAs('Report.xls', xlExcel97);