ganz langsam nähere ich mich der Ziellinie.
Natürlich muss da noch ein Klotz im Weg liegen :-/
der folgende Code funktioniert wunschgemäß, außer das dieser eigentlich die Termine in den freigegebenen Kalender "Versandplan" eintragen sollte.
Hat jemand hier die Zeit und Lust bei diesem Problem zu helfen?
Vorab vielen Dank+ Gruß KL
Sub Termin_in_Versandplan()
Dim OutApp As Object
Dim apptOutApp As Object
Worksheets("Gesamt").Range("K9:K65535").SpecialCells(xlCellTypeVisible).Select
Do Until ActiveCell.Value = ""
Set OutApp = CreateObject("Outlook.Application")
Set apptOutApp = OutApp.CreateItem(1) 'olAppointmentItem)
With apptOutApp
.Start = Format(ActiveCell.Value, "dd.mm.yyyy") & " " & _
Format(ActiveCell.Offset(0, 1).Value, "hh:mm")
.Subject = ActiveCell.Offset(0, -10) & " " & ActiveCell.Offset(0, -9) & " " _
& ActiveCell.Offset(0, -6) & _
" " & " " & ActiveCell.Offset(0, -4) & " " & ActiveCell.Offset(0, -3) & " _
Stk. / " & ActiveCell.Offset(0, -2) & _
" mm / " & ActiveCell.Offset(0, -1) & " t."
.Duration = "60"
.Save
End With
ActiveCell.Offset(1, 0).Select
Set apptOutApp = Nothing
Set OutApp = Nothing
Loop
MsgBox "Die Termine wurden in den Versandplan eingetragen!"
End Sub