Re: Outlook Calendar Issues
Have I explained clearly enough for people?
Re: Outlook Calendar Issues
yes you have
can you show code examples
here to help
Re: Outlook Calendar Issues
I can do, but something as simple as this will throw the same error.
With Only one Outlook Diary Entry which recurs every 10 years on the 1st January.
Set OutLkAppointment = OutLkItems.GetFirst
Set OutLkAppRecurrence = OutLkAppointment.GetRecurrencePattern
debug.print OutLkAppRecurrence.RecurrenceType ' Prints 5
debug.print OutLkAppRecurrence.DayOfMonth ' Prints 1
debug.print OutLkAppRecurrence.MonthOfYear ' Prints 1
debug.print OutLkAppRecurrence.Interval ' Prints 120
OutLkAppRecurrence.Interval = 120 'Throws Invalid Recurrence Pattern RTE
Re: Outlook Calendar Issues
I can do, but something as simple as this will throw the same error.
With Only one Outlook Diary Entry which recurs every 10 years on the 1st January.
Code:
Set OutLkAppointment = OutLkItems.GetFirst
Set OutLkAppRecurrence = OutLkAppointment.GetRecurrencePattern
debug.print OutLkAppRecurrence.RecurrenceType ' Prints 5
debug.print OutLkAppRecurrence.DayOfMonth ' Prints 1
debug.print OutLkAppRecurrence.MonthOfYear ' Prints 1
debug.print OutLkAppRecurrence.Interval ' Prints 120
OutLkAppRecurrence.Interval = 120 'Throws Invalid Recurrence Pattern RTE
Re: Outlook Calendar Issues
Does anyone have any ideas?
Re: Outlook Calendar Issues
Still hoping for some help with this.
Re: Outlook Calendar Issues
Code:
Set OutLkAppointment = OutLkItems.GetFirst
Set OutLkAppRecurrence = OutLkAppointment.GetRecurrencePattern
debug.print OutLkAppRecurrence.RecurrenceType ' Prints 5
debug.print OutLkAppRecurrence.DayOfMonth ' Prints 1
debug.print OutLkAppRecurrence.MonthOfYear ' Prints 1
debug.print OutLkAppRecurrence.Interval ' Prints 120
OutLkAppRecurrence.Interval = 120 'Throws Invalid Recurrence Pattern RTE
In actual fact any multiple of 12 upto 96 is a valid period, but no 3 digit values are acceptable for OutLkAppRecurrence.Interval, despite Outlook returning 120 as the figure from the diary. Does anyone have any ideas?