3 messages in org.openoffice.fr.prog[prog] Style de cellule dans calc
FromSent OnAttachments
Kohler GerardSep 29, 2008 2:38 am 
Laurent GodardSep 29, 2008 2:56 am 
Kohler GerardSep 29, 2008 5:40 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] Style de cellule dans calcActions...
From:Kohler Gerard (koh@oceanetpro.net)
Date:Sep 29, 2008 2:38:17 am
List:org.openoffice.fr.prog

bonjour,

j'ai créé un style personnalisé (formatage de date dans une cellule), dans un document calc,(F11, nom du style : styleDate)

je n'arrive pas à employé ce style dans mes macros :

Sub formate_donnees 'variables Dim sheetIn As Object Dim CelIn As Object Dim iLig As Long Dim tOK As Boolean 'routines sheetIn = monDoc.Sheets.getByName("feuille1") tOK = True iLig = 0 while tOK = True if sheetIn.getCellByPosition(2,iLig).String = "" then tOK = False else CelIn = sheetIn.getCellByPosition(0,iLig) CelIn.cellStyle = styleDate iLig = iLig + 1 end if wend End Sub

comprends pas pourquoi cela ne marche pas.

gérard