2 messages in org.openoffice.fr.prog[prog] Problème conversion macro exce...
FromSent OnAttachments
Stéphane PURNELLEJul 6, 2009 4:52 am 
Thibault VataireJul 7, 2009 5:33 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[prog] Problème conversion macro excel vers OOo BasicActions...
From:Stéphane PURNELLE (step@corman.be)
Date:Jul 6, 2009 4:52:33 am
List:org.openoffice.fr.prog

Bonjour,

J'essaie de convertir une macro en VBA vers OOo Basic. Je coince déja avec cette ligne :

Do While Range(Application.Workbooks(1).Names.Item("TdB")).Offset(wi_lig - 1) <> ""

Selon une doc trouvée sur internet nommée : "Examples or Porting Visual Basic for Applications to StarBasic" Je peux convertir cela en :

Do While maFeuille1.getCellRangeByName("TdB").getCellByPosition(1,wi_lig - 1) <> ""

Mais dès que je le lance, j'ai une erreur IndexOutOfBoundException. wi_lig vaut 2 Comme dans la doc, je n'ai pas d'indication a propos de Offset avec 1 paramètre, j'ai mis 1 comme valeur pour X (ce qui correspond à la colone B)

Pourriez-vous m'aider ?

Merci

Stéphane