9 messages in org.openoffice.fr.prog[urgent] fusion de 2 cellules
FromSent OnAttachments
ROUSSEAU ChristopheSep 19, 2006 12:50 pm 
gilles bignebatSep 19, 2006 1:53 pm 
Laurent GodardSep 19, 2006 11:19 pm 
Thierry MunozSep 20, 2006 12:09 am 
Thierry MunozSep 20, 2006 2:20 am 
Laurent GodardSep 20, 2006 2:29 am 
Thierry MunozSep 20, 2006 2:35 am 
Thierry MunozSep 20, 2006 2:46 am 
ROUSSEAU ChristopheSep 21, 2006 11:07 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:[urgent] fusion de 2 cellulesActions...
From:ROUSSEAU Christophe (lcrp@wanadoo.fr)
Date:Sep 19, 2006 12:50:57 pm
List:org.openoffice.fr.prog

bonsoir,

j'ai un besoin extrément urgent d'une macro qui permete de fusionné 2 cellule sans perte d'information qui boucle sur plus de 5000 lignes.

Précision j'ai fais un enregistrement de macro et j'ai presque tous ce qu'il me faut car il me manque la boucle.

précisions j'ai pratiquement pas de connaissance en macro et surtout je n'ais que peut de temps. il faut que mon fichier calc soit formaté pour demain matin.

je fournir la macro automatique si au hasard qu'ellequ'un peut m'aider.

par avance merci.

------------------------------ REM ***** BASIC *****

sub Main rem ---------------------------------------------------------------------- rem define variables dim document as object dim dispatcher as object rem ---------------------------------------------------------------------- rem get access to the document document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem ---------------------------------------------------------------------- dim args1(0) as new com.sun.star.beans.PropertyValue args1(0).Name = "ToPoint" args1(0).Value = "$B$5:$C$5"

dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args1())

rem ---------------------------------------------------------------------- dim args2(0) as new com.sun.star.beans.PropertyValue args2(0).Name = "MoveContents" args2(0).Value = true

dispatcher.executeDispatch(document, ".uno:ToggleMergeCells", "", 0, args2())

end sub