rventuradiaz
2010-04-23 12:55:23 UTC
I try to update appointment's start and end date. On trying to
change .start property then error occur.
Would you please help me to fix the error or find an alternative
solution please?
Thanks
Rafael
The code is below:
Dim olAppt As Outlook.AppointmentItem
Set olAppt = objSubCalFolder.Items.Item(Subject)
Set myRecurrPatt = olAppt.GetRecurrencePattern
myRecurrPatt.RecurrenceType = olRecursDaily
myRecurrPatt.PatternStartDate = beginDate
myRecurrPatt.PatternEndDate = endDate
' Configurar la información de otra cita...
With olAppt
If olAppt.EntryID = olcode Then '19-4-2010: Añadir una restricción
para actualizar
.Start = FecIni + CDbl(HorIni) '+ (2# / 24# / 60#) .Duration =
Duracion
.End = FecFin + CDbl(HorIni) + CDbl(Duracion) / 60# / 24#
.Subject = Asunto
.Body = "Reserva de Aula para actividad: " & Asunto
.Location = "Oficina doméstica"
.ReminderMinutesBeforeStart = 60
.ReminderSet = True
End If
End With
change .start property then error occur.
Would you please help me to fix the error or find an alternative
solution please?
Thanks
Rafael
The code is below:
Dim olAppt As Outlook.AppointmentItem
Set olAppt = objSubCalFolder.Items.Item(Subject)
Set myRecurrPatt = olAppt.GetRecurrencePattern
myRecurrPatt.RecurrenceType = olRecursDaily
myRecurrPatt.PatternStartDate = beginDate
myRecurrPatt.PatternEndDate = endDate
' Configurar la información de otra cita...
With olAppt
If olAppt.EntryID = olcode Then '19-4-2010: Añadir una restricción
para actualizar
.Start = FecIni + CDbl(HorIni) '+ (2# / 24# / 60#) .Duration =
Duracion
.End = FecFin + CDbl(HorIni) + CDbl(Duracion) / 60# / 24#
.Subject = Asunto
.Body = "Reserva de Aula para actividad: " & Asunto
.Location = "Oficina doméstica"
.ReminderMinutesBeforeStart = 60
.ReminderSet = True
End If
End With