Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 5 And Target.Row < 5 Then Exit Sub
Dim MSOutlook As Object, Takvim As Object
Set MSOutlook = CreateObject("Outlook.Application")
Set Takvim = MSOutlook.CreateItem(1)
With Takvim
.Start = CDate(Target.Value) + TimeValue("12:00:00")
.End = .Start + TimeValue("00:15:00")
.Subject = Target.Offset(0, -11).Value
.Location = ""
For i = 1 To 15
x = x & Cells(3, i) & " : " & Cells(Target.Row, i) & vbCrLf
Next
.Body = x
.BusyStatus = olBusy
.ReminderMinutesBeforeStart = 5
.ReminderSet = True
.Save
End With
Set Takvim = Nothing
Set MSOutlook = Nothing
End Sub
yaptım ama aynı hatayı verdi
0