diff --git a/funcext/TSOffice/worksheet/xlsxStyles.tsf b/funcext/TSOffice/worksheet/xlsxStyles.tsf index 1191756..35e29f0 100644 --- a/funcext/TSOffice/worksheet/xlsxStyles.tsf +++ b/funcext/TSOffice/worksheet/xlsxStyles.tsf @@ -220,9 +220,9 @@ private begin if ifnil(obj.FormatCode) then xf_node.SetAttribute('numFmtId', 0); else begin - obj.NumFmtId := 176; + processNumFmtId(root, 'numFmts', obj); insertNode(root, 'numFmts', obj); - xf_node.SetAttribute('numFmtId', 176); + xf_node.SetAttribute('numFmtId', obj.NumFmtId); end end else begin