Docs HotXLS

FormulaHidden-property

Obtient ou définit a value that indicates whether the Formula in the range will be hidden when the Worksheet is protected. True if the Formula will be hidden when the Worksheet is protected

Syntaxe

property FormulaHidden: boolean;

Remarques

La formule ne sera pas masquée si le classeur est protégé mais pas la feuille

Exemple

Cet exemple définit la Formula de la cellule A6 pour calculer la somme des cellules A1 à A5, et utilise la propriété FormulaHidden pour masquer la formule

With Workbook.Sheets[1].Cells[6,1] do
begin
   Formula := '=SUM(A1:A5)';
   FormulaHidden := true;
end;