Bonjour Christian
Pour compléter la réponse d'hier, un test avec macro ne donne rien.
si la cellule contient '100 avec apostrophe
contenu= oCell.String
contenu = oCell.Type par contre
retourne
http://api.openoffice.org/docs/common/ref/com/sun/star/table/CellContentType.html
voir
http://api.openoffice.org/docs/common/ref/com/sun/star/table/XCell.html#getType
je pense que ce peut etre la voie
La cellule A2 contient '100
Sub Main
laFeuille = thisComponent.CurrentController.ActiveSheet
A2 = laFeuille.getCellRangeByname("A2")
print A2.type
valeur = A2.string
A2.string = ""
A2.value = valeur
'peut etre utiliser les focntions de conversion si necessaire
print A2.type
End Sub
Le type de la cellule passe bien à 1, c'est a dire numérique
Cordialement
Laurent
--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]