ich muss eine excel tabelle in calc umarbeiten da wir auf oO umstellen.
hier der vba code
-------------------------------------------------------------------------------------
Code: Alles auswählen
Sub MarkierteZeileKopieren()
Dim Cr As Long, CC As Integer
Dim Projektnummer As Object
Dim appWD As New Word.Application
CC = 1
'Übernehmen der Zeile
Cr = Selection.Row
'Senden an Zieladressen
Application.ScreenUpdating = False 'Bildschirmaktualisierung aus
Cells(Cr, CC).Select 'Nr. (Nummer) 'Zelle auswählen
Selection.Font.Bold = True 'Fettschrift ein
Selection.Font.Size = 12 'Schriftgröße 12
Selection.Copy 'Zelle kopieren
Set appWD = CreateObject("word.Application") 'Programm Word öffnen
appWD.Visible = True 'sichtbar
appWD.documents.Add ("pfad des dokuments") 'öffnen des Dokumentes als neues
appWD.Selection.GoTo What:=wdGoToBookmark, Name:="Nummer" 'zur Textmarke springen
appWD.Selection.Paste 'Inhalt Zelle einfügen
Selection.Font.Bold = False 'Fettschrift aus
Selection.Font.Size = 10 'Schriftgröße 10
Cells(Cr, CC + 1).Copy 'Kunde (Kunde)
appWD.Selection.GoTo What:=wdGoToBookmark, Name:="Kunde"
appWD.Selection.Paste
Cells(Cr, CC + 5).Copy 'Projektverantwortlicher (Bearbeiter)
appWD.Selection.GoTo What:=wdGoToBookmark, Name:="Bearbeiter"
appWD.Selection.Paste
Cells(Cr, CC + 6).Copy 'Teilenummer (Teilenummer)
appWD.Selection.GoTo What:=wdGoToBookmark, Name:="Teilenummer"
appWD.Selection.Paste
appWD.Selection.GoTo What:=wdGoToBookmark, Name:="Datum" 'zur Textmarke springen
appWD.Selection.Font.Name = "Arial" 'Schriftart ändern
appWD.Selection = Date 'Aktuelles Datum einfügen
Application.ScreenUpdating = True 'Bildschirmaktualisierung an
End Sub
wie kann ich das in starbasic realisieren ? ich weiss wie man eine zelle ausliest usw. aber ich komme absolut nicht voran mit diesem prog.
danke im vorraus