Weekday daily recurrence appointments.

  • Thread starter Thread starter joedowns
  • Start date Start date
J

joedowns

I'm trying to programatically create a recurrence on an appointment
that is daily but only on weekdays. I would have thought it would be
done by setting (on the RecurrencePattern object for the appointment)
the RecurrenceType to olRecursDaily, the Interval to 1 and setting the
DayOfWeekMask property to the bitwise combination of the olMonday
through olFriday values. However I get an error when trying to set the
DayOfWeekMask property which is:

"The property for the recurrence type is not valid. Verify your code."

Any ideas?

- Joe
 
I've found out that even though the MSDN docs say you can use a
DayOfWeekMask property on a olRecursDaily type, you actually can't
(this is in Outlook 2003). You need to set it to olRecursWeekly and
use the DayOfWeekMask. While this works the same, if you open the
series in Outlook it shows the "Weekly" radio button selected. Is
there any way to get it to show "Daily" with "Every Weekday" selected?
 
Back
Top