Every Weekday - Appointment Recurrence

  • Thread starter Eddy d'Artois via OfficeKB.com
  • 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
 
D

Dan Mitchell

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top