Home-›Foren-›Outlook-›Outlook Allgemein-›Excel Makro auf Late Binding umstellen
- This topic has 0 Antworten, 1 Stimme, and was last updated 11:34 um 11. September 2008 by Salkin.
- AutorBeitrag
- 11. September 2008 um 11:34 #46708SalkinParticipant
Ich habe eine Makro Code erstellt der leider nur bei der Outlook Version 2003 läuft.
Dies liegt an dem Verweis.
Nun weiß ich, dass die Verweise bei Late Binding nicht mehr notwendig sind.
Ich bekomme aber nicht hin meinen Code auf Late Binding umzustellen.Hier der Code:
Private Sub cmdHeim_Click()
Zeile = 2
ActiveSheet.Cells(1, 1).Select
Do While (ActiveCell.Value <> \“\“)
ActiveSheet.Cells(Zeile, 1).Select
Gegner1 = ActiveCell.ValueActiveSheet.Cells(Zeile, 2).Select
Spieldatum1 = ActiveCell.ValueActiveSheet.Cells(Zeile, 3).Select
BeginnZeit1 = ActiveCell.ValueActiveSheet.Cells(Zeile, 4).Select
EndZeit1 = ActiveCell.ValueActiveSheet.Cells(Zeile, 16).Select
kategorie1 = ActiveCell.ValueActiveSheet.Cells(Zeile, 17).Select
Ort1 = ActiveCell.ValueZeile = Zeile + 1
ActiveSheet.Cells(Zeile, 1).Select
Dim ooutlook As New Outlook.Application
Dim termin As Outlook.AppointmentItem
Set termin = ooutlook.CreateItem(olAppointmentItem)termin.Subject = Gegner1
termin.ReminderSet = True
termin.AllDayEvent = Truetermin.Categories = kategorie1
termin.BusyStatus = olOutOfOffice
termin.Location = Ort1
termin.Duration = 90
termin.Body = Test
termin.Start = Spieldatum1 + \“ \“ + BeginnZeit1
termin.Sensitivity = olPrivate
termin.ReminderMinutesBeforeStart = 240
termin.SaveLoop
End SubEs wäre gut wenn mir jemand Helfen könnte.
Ich weiß das ich die Variablen als object definieren muss. Das reicht aber leider nicht.
Schonmal Danke.Gruß
Niklas[Editiert am 11/9/2008 von Salkin]
- AutorBeitrag
