9 messages in org.openoffice.fr.prog[prog] Copier coller !
FromSent OnAttachments
TroumadDec 29, 2005 5:13 am 
TroumadDec 29, 2005 5:16 am 
Laurent GodardDec 29, 2005 5:19 am 
TroumadDec 29, 2005 5:38 am 
TroumadDec 29, 2005 8:43 am 
TroumadDec 29, 2005 8:49 am 
Bernard MarcellyDec 29, 2005 9:20 am 
TroumadDec 29, 2005 9:49 am 
TroumadDec 29, 2005 12:06 pm 
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] Copier coller !Actions...
From:Troumad (trou@libertysurf.fr)
Date:Dec 29, 2005 5:13:42 am
List:org.openoffice.fr.prog

Bonjour

Dans mon fichier http://troumad.info/OOo/tarot-basic.ods , je fais un copier-coller (créé par outil->macro->enregistrer une macro). Je ne vois pas pourquoi ça ne marche pas (toujours). Ça marchait, ça ne marche plus (et j'ai l'impression que ça a marché une fois depuis je ne sais pourquoi !).

En faisant du pas à pas, je vois bien toutes les cellules qui se font sélectionner ( O3:T3 ) après arrive la copie : dispatcher.executeDispatch(document, ".uno:Copy", "", 0, Array()) La sélection de la cellule cible (qui a l'air d'être la bonne) : dim args10(0) as new com.sun.star.beans.PropertyValue args10(0).Name = "ToPoint" args10(0).Value = "$H$"+(i+1) dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args10()) Puis la copie : dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array())

Pourquoi ça ne marche pas ?