La modération vous a écrit: Calc est inutile dans le titre puisqu'il y a déjà une balise [Calc] et titre complété.
Bonjour,
L'appel de certaines fonctions CALC (SUM, MIN, COUNTBLANK par exemple) fonctionne bien.
Code : Tout sélectionner
MsgBox "Somme F2:F5 = " & oFonction.callFunction("SUM", Array(Feuille.getCellRangeByName("F2:F15")))
MsgBox "Mini E2:E15 = " & oFonction.callFunction("MIN", Array(Feuille.getCellRangeByName("E2:E15")))
MsgBox "Nb vides C2:C15 = " & oFonction.callFunction("COUNTBLANK", Array(Feuille.getCellRangeByName("C2:C15")))
Code : Tout sélectionner
MsgBox oFonction.callFunction("ISNONTEXT", Array(Feuille.getCellRangeByName("E2")))
MsgBox oFonction.callFunction("ISFORMULA", Array(Feuille.getCellRangeByName("C2:C3")))
MsgBox oFonction.callFunction("ISNUMBER", Array(Feuille.getCellRangeByName("E2:E15")))
MsgBox oFonction.callFunction("ISTEXT", Array(Feuille.getCellRangeByName("A2:A15")))
MsgBox oFonction.callFunction("ISBLANK", Array(Feuille.getCellRangeByName("D2:D15")))
MsgBox oFonction.callFunction("ISNONTEXT", Array(Feuille.getCellRangeByName("E2:F15")))
Gaby-Jo
LibreOffice 6.4.6.2 (64)
Windows 7 Pro (64)