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 dans ma macro
merci de votre aide.
PS: si je suis coincé je referai appel a vous
--
View this message in context:
http://nabble.documentfoundation.org/information-a-propos-de-libreoffice-basic-pour-macro-tp4014875.html
Sent from the Discuss mailing list archive at Nabble.com.
--
Envoyez un mail à discuss+help@fr.libreoffice.org pour savoir comment vous désinscrire
Les archives de la liste sont disponibles à http://listarchives.libreoffice.org/fr/discuss/
Tous les messages envoyés sur cette liste seront archivés publiquement et ne pourront pas être
supprimés
Context
- [fr-discuss] information a propos de libreoffice basic pour macro · duocore
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.