Seite 1 von 1

Libre Office Basic und Visual Basic (Excel)

Verfasst: Mo 18. Jun 2012, 21:16
von ms001
Hallo Libre-Helfer,

ich habe in einer Excel-Tabelle einen Button, der beim Anklicken den Wert, der in einer TextBox steht, in eine bestimmte Spalte schreibt. Der Code sieht dazu so aus:

Code: Alles auswählen

Private Sub CommandButton1_Click()
Dim Index, zelle, zeile, max, spalte
zeile = 0
max = 999
spalte = 1
For Index = 1 To max
     zelle = Cells(Index, spalte)
     If a = 0 Then
          If zelle = "" Then
            zeile = Index
            Index = max
          End If
     End if
Next
Cells(zeile, spalte) = TextBox1
Cells(zeile, spalte + 1) = TextBox1

End Sub
Wie bekomme ich das nun in LibreOffice Calc hin?

MfG

ms001

Re: Libre Office Basic und Visual Basic (Excel)

Verfasst: Mo 18. Jun 2012, 21:25
von swolf
Hallo,

für Makro-Fragen existiert im Forum eine passende Rubrik
http://www.libreoffice-forum.de/viewforum.php?f=12

Und hier findest du Informationen zu StarBasic
wie auch den Link
"Ein Dokument zur Übertragung von Excel-VBA zu StarBasic"
http://www.ooowiki.de/StarBasic

Re: Libre Office Basic und Visual Basic (Excel)

Verfasst: Mo 18. Jun 2012, 21:44
von ms001
Hallo,
schonmal danke. Ich werde das mal ausprobieren.

Gruß
Ms001