#1 Le 22/10/2012, à 07:00
- duocore
information a propos de libreoffice basic pour macro
bonjour,
je recherche un document en pdf qui explique le fonctionnement de libreoffice basic.
Car j'ai un code:
REM ***** BASIC *****
Sub Dialog1Show ' fenetre avec 2 (textfield)Valeurs CBSA et DOBSA et un bouton fait avec IDE
DialogLibraries.LoadLibrary( "Standard" )
oDialog1 = CreateUnoDialog( DialogLibraries.Standard.Dialog1 )
oDialog1.Execute()
'je pense que je dois mettre mon bout de code ici
'le fait de valider les 2 valeurs CBSA et DOBSA en cliquant sur un bouton
End Sub
Sub Main
Dim Doc As Object
Dim Sheet As Object
Dim Cell As Object
dim pointbsa as integer
pointbsa=inputbox("Nombres de points BSA", "Courbe BSA","")
dim I
for I = 1 to pointbsa
Dialog1Show
Doc = StarDesktop.CurrentComponent
Sheet = Doc.Sheets(0)
Cell = Sheet.getCellByPosition(0, 0)
Cell.string = "[C]"
Cell = Sheet.getCellByPosition(1, 0)
Cell.String = "DO"
Cell = Sheet.getCellByPosition(0,I )
Cell.Value = CBSA
Cell = Sheet.getCellByPosition(1,I )
Cell.Value = DOBSA
next I
End Sub
je ne trouve pas comment mettre la fonction
button.onclick() comme dans VBA ou d'autre langages basic dans ma macro
merci de votre aide.
PS: si je suis coincé je referai appel a vous
Dernière modification par duocore (Le 22/10/2012, à 07:03)
Hors ligne