Every Weekday - Appointment Recurrence

  • Thread starter Thread starter Eddy d'Artois via OfficeKB.com
  • Start date Start date
E

Eddy d'Artois via OfficeKB.com

Can Anybody tell me how to set the Every Weekday choice in the Appointment
Recurrence with VBA?
A certain day can be set through the DayOfWeekMask, but I don't find a
member of the RecurrencePattern where I can choose the Every Weekday Option

Thanks for help
 
Eddy d'Artois via OfficeKB.com said:
Can Anybody tell me how to set the Every Weekday choice in the
Appointment Recurrence with VBA?
A certain day can be set through the DayOfWeekMask, but I don't find a
member of the RecurrencePattern where I can choose the Every Weekday
Option

DayOfWeekMask is a bitmask -- each bit represents a day, so if you wanted
Monday and Tuesday, you'd add the values for monday (2, 10 in binary) and
tuesday together (4. 100 in binary) and the result (6, 110 in binary)
represents both days. So for every weekday, just add (or bitwise or, if
you'd rather, though in this case it's the same thing) the values for
mon,tue,wed,thu,fri together.

-- dan
 
Back
Top