Seite 1 von 1

HBLibXL :BookAddCustomNumFormat()

Verfasst: Fr, 03. Jun 2022 12:53
von Marcus Herz
Hallo

Code: Alles auswählen

oFormat:FormatSetNumFormat(oBook:BookAddCustomNumFormat("#.00000"))
Das funktioniert bei mir nicht, wenn ich es nur für eine Zelle setzen will.
Wohingegen

Code: Alles auswählen

oFormat:FormatSetNumFormat(NUMFORMAT_NUMBER_D2)
das schon für eine einzelne Zelle funktioniert.
Kann BookAddCustomNumFormat nur für die ganze Spalte verwendet werden? Hab dazu keine Doku gefunden.
In Huberts Beispiel wird es für die ganze Spalte gesetzt

Re: HBLibXL :BookAddCustomNumFormat()

Verfasst: Fr, 03. Jun 2022 13:20
von Marcus Herz
Stell gereade fest, das Beispiel test3.prg, da funktioniert das

Code: Alles auswählen

            oAlign:FormatSetNumFormat( oBook:BookAddCustomNumFormat( "###,###,###.000" ) )
in Zeile 89 auch nicht.
Code2.00 vom 4.2.22
Ist das ein Fehler in LibXl?