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


Hallo Andreas,

dieses Makro (s.u.) fügt nach der 1. Zeile (Index = 0) eine neue Zeile ein. "Y" ist dabei der Index der einzufügenden Zeile.

Makro über eine Schaltfläche ausführen: http://de.openoffice.info/viewtopic.php?t=65717

Gruß
Hans-Werner :-))


  Sub InsertRow

' https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1table_1_1XTableRows.html

     Dim oD as Object ' [object] Dokument
     Dim oT as Object ' [object] Tabellenblatt
     dim oZ as Object ' [object] Zeile
     Dim A  as Long   ' Anzahl
     Dim Y  as Long   ' Y-Index (1.Zeile: Y=0)

     oD = ThisComponent
     oT = oD.Sheets(0)
     oZ = oT.getRows

     Y = 1
     A = 1

     oZ.insertByIndex(Y,A)

  End Sub
--
Liste abmelden mit E-Mail an: users+unsubscribe@de.libreoffice.org
Probleme? https://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: https://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: https://listarchives.libreoffice.org/de/users/
Datenschutzerklärung: https://www.documentfoundation.org/privacy

Context


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.