Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index

Merci Pierre-Yves pour la piste des types de données.
Le code suivant fonctionne correctement:
Sub Incrementer_Facture()
    Dim MonDocument As Object,lesFeuilles As Object,MaFeuille As Object
    Dim MaCellule As Object,laZoneUn As Object,laZoneDeux As Object
    Dim leTaux As Object,numFact As String,gomme As Long
    Dim i As Integer
    MonDocument = ThisComponent
    lesFeuilles = MonDocument.Sheets
    MaFeuille = lesFeuilles.getByName("facture")
    MaCellule = MaFeuille.getCellRangeByName("C2")
    laZoneUn = MaFeuille.getCellRangeByName("B6:B9")
    laZoneDeux = MaFeuille.getCellRangeByName("E6:E9")
    leTaux = MaFeuille.getCellRangeByName("D11")
    gomme =
    gomme =
    numFact = Right(MaCellule./*string*/,6)
    numFact = (Cint(numFact)) + 1
    numFact = (Cstr(numFact))
    For i = 1 To 6 - Len(numFact)
        numFact = "0" & numFact
    Next i
       MaCellule = MaFeuille.getCellRangeByName("C2")
    MaCellule./*string*/ = "FA" & " / " & CStr(Year(Date)) & "-" & numFact
End Sub
Michel B.

Envoyez un mail à pour savoir comment vous désinscrire
Les archives de la liste sont disponibles à
Tous les messages envoyés sur cette liste seront archivés publiquement et ne pourront pas être 


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.