Stéphane PURNELLE
Thu, 25 Feb 2010 04:34:12 -0800
avec =SUM cela fonctionne. Merci à tous
-----------------------------------
Stéphane PURNELLE Admin. Systèmes et Réseaux
Service Informatique Corman S.A. Tel : 00 32 (0)87/342467
Thibault Vataire <tvata...@starxpert.fr> wrote on 25/02/2010 13:30:28:
> Thibault Vataire <tvata...@starxpert.fr>
> 25/02/2010 13:30
>
> Veuillez répondre à
> prog@fr.openoffice.org
>
> A
>
> prog@fr.openoffice.org
>
> cc
>
> Objet
>
> Re: [prog] Problème génération d'une formule en OOo Basic
>
> Bonjour,
>
> Lorsque vous utilisez la propriété "formulaLocal", utilisez le nom
> de la formule tel qu'il apparait lorsqu'elle insérée par
l'interfacegraphique.
> Lorsque vous utilisez la pseudo-propriété "formula", il est
> nécéssaire d'utiliser le nom de la formule en anglais.
>
> soit :
>
> thisComponent.sheets.getByIndex(0).getCellRangeByName
> ("A1").formulaLocal = "=SOMME(3+5)"
> thisComponent.sheets.getByIndex(0).getCellRangeByName("A2").formula
> = "=SUM(3+5)"
>
> Cordialement,
>
> T. Vataire
>
>
> ----- Mail Original -----
> De: "yves dutrieux" <ydutri...@gmail.com>
> À: prog@fr.openoffice.org
> Envoyé: Jeudi 25 Février 2010 12:42:14
> Objet: Re: [prog] Problème génération d'une formule en OOo Basic
>
> Bonjour,
>
> Le 25 février 2010 12:34, Stéphane PURNELLE
<stephane.purne...@corman.be> a
> écrit :
>
> > Bonjour Laurent,
> >
> > Alors, oui je suis sur de mes champs.
> >
>
> N'est-on pas obligé de définir le type du champs pour le forcer à un
string
> ?
>
> Yves
>
> >
> > REM Adesso - nous allons réaliser les formules
> > REM reposition sur st_li
> > jeCherche = maFeuille.createSearchDescriptor
> > with jeCherche
> > .SearchString = "st_li"
> > .searchWords = false
> > end with
> > trouv = maFeuille.findAll(jeCherche)
> > monDocument.CurrentController.Select(trouv(0))
> > maCellule = monDocument.currentSelection
> >
> > print "D"+cstr(maCellule.CellAddress.Row+1)
> > adresseDebut = "D"+cstr(maCellule.CellAddress.Row+1)
> > REM print
> >
maFeuille.getCellrangeByName("D"+cstr(maCellule.CellAddress.Row+1)).string
> > REM print
> > maFeuille.getCellByPosition(maxcol-2,maCellule.CellAddress.Row).string
> >
> > maCellule =
> > maFeuille.getCellByPosition(maxcol-1,maCellule.CellAddress.Row)
> > REM print maCellule.String
> >
> > adresseFin=adresseString(monDocument,maCellule.CellAddress)
> > print adresseFin
> >
> >
> > maCellule =
maFeuille.getCellByPosition(maxcol,maCellule.CellAddress.Row)
> > REM print maCellule.String
> >
> > maCellule.Formula = "=SOMME("+adresseDebut+":"+adresseFin+")"
> >
> > -----------------------------------
> > Stéphane PURNELLE Admin. Systèmes et Réseaux
> > Service Informatique Corman S.A. Tel : 00 32
(0)87/342467
> >
> > Laurent Godard <oooc...@free.fr> wrote on 25/02/2010 12:31:13:
> >
> > > Laurent Godard <oooc...@free.fr>
> > > 25/02/2010 12:31
> > >
> > > Veuillez répondre à
> > > prog@fr.openoffice.org
> > >
> > > A
> > >
> > > prog@fr.openoffice.org
> > >
> > > cc
> > >
> > > Objet
> > >
> > > Re: [prog] Problème génération d'une formule en OOo Basic
> > >
> > > Bonjour stefane
> > >
> > > > J'ai dans mon code la ligne suivante :
> > > >
> > > > maCellule.Formula = "=SOMME("+adresseDebut+":"+adresseFin+")"
> > > >
> > > > Seulement, elle ne marche pas car elle devient =somme(D3:AS3) dans
la
> > > > cellule
> > >
> > > difficile de dire sans le code et l'exemple sous les yeux
> > > es tu sur de la valeur et du calcul de adresseDebut et adresseFin ?
> > >
> > > Laurent
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: prog-unsubscr...@fr.openoffice.org
> > > For additional commands, e-mail: prog-h...@fr.openoffice.org
> > >
> >
>
>
>
> --
> web site : http://www.molenbaix.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: prog-unsubscr...@fr.openoffice.org
> For additional commands, e-mail: prog-h...@fr.openoffice.org
>