3 messages in org.openoffice.fr.progRe: [prog] Copier 2 cellules de diffe...
FromSent OnAttachments
endiveDec 18, 2006 7:41 am 
Francois GattoDec 18, 2006 6:29 pm 
Laurent GodardDec 18, 2006 11:07 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:Re: [prog] Copier 2 cellules de differents onglets dans un nouveau tableauActions...
From:Laurent Godard (lgod@indesko.com)
Date:Dec 18, 2006 11:07:57 pm
List:org.openoffice.fr.prog

bonjour

Voici une idée :

Sub CopyTab2Tab oSheet = ThisComponent.getSheets() oSheetCible = oSheet.getByIndex(0) nSheets = ThisComponent.getSheets().Count ' lecture des onglets à partir de 3 (feuille4 et suivantes) ' on admet que les feuilles sont dans l'ordre requis For i = 3 to nSheets - 1 oSheetSource = oSheet.getByIndex(i) oSheetCible.getCellRangeByName("A"&i-2).String = oSheetSource.getCellRangeByName("C12").String oSheetCible.getCellRangeByName("B"&i-2).String = oSheetSource.getCellRangeByName("I37").String Next End Sub

regarder du coté de copyRange

Laurent