Identify weekend from daily RecurrencePattern

Status
Not open for further replies.

sgrosch1

Member
I'm parsing a RecurrencePattern object where the recurrence type is daily. If I'm understanding properly, the pattern Interval of 0 means that they only want weekdays. Is that correct? If so, how do I identify which days are weekday?




I know in the calendar options page there are checkboxes for what a workweek is. Can somebody show me how to access those checkboxes please?
 
K

Ken Slovak - [MVP - Outlook]

Have you looked at DayOfWeekMask?

olMonday = 2

olTuesday = 4

olWednesday = 8

olThursday = 16

olFriday = 32

32+16+8+4+2 = 62

If DayOfWeekMask is 62 then the work week would be Monday to Friday. The

mask is actually the OR of all the binary values of the day flag bits.

"sgrosch1" <sgrosch1.4a552y@invalid> wrote in message

news:sgrosch1.4a552y@invalid...

> I'm parsing a RecurrencePattern object where the recurrence type is
> daily. If I'm understanding properly, the pattern Interval of 0 means
> that they only want weekdays. Is that correct? If so, how do I
> identify which days are weekday?

> I know in the calendar options page there are checkboxes for what a
> workweek is. Can somebody show me how to access those checkboxes
> please?

> > sgrosch1
> >
 

sgrosch1

Member
That's the days selected in the recurrence pattern, not the days that are flagged in the Calendar options for which days the employee works. I found the calendar options up in the registry and can compare that against the mask now.






Have you looked at DayOfWeekMask?




olMonday = 2


olTuesday = 4


olWednesday = 8


olThursday = 16


olFriday = 32




32+16+8+4+2 = 62




If DayOfWeekMask is 62 then the work week would be Monday to Friday. The


mask is actually the OR of all the binary values of the day flag bits.




--


















"sgrosch1" <sgrosch1.4a552y@invalid> wrote in message


news:sgrosch1.4a552y@invalid...

>

> I'm parsing a RecurrencePattern object where the recurrence type is

> daily. If I'm understanding properly, the pattern Interval of 0 means

> that they only want weekdays. Is that correct? If so, how do I

> identify which days are weekday?

>

> I know in the calendar options page there are checkboxes for what a

> workweek is. Can somebody show me how to access those checkboxes

> please?

>

>

> --

> sgrosch1

>

>
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
I Identify Number of email messages opened Outlook VBA and Custom Forms 7
S VBA to identify a specific email and copy the attachment from it to the network Outlook VBA and Custom Forms 4
M Best way to identify/designate contacts in incoming emails? Using Outlook 4
makinmyway How can I easily identify and delete from my contacts defunct email addresses? Using Outlook 2
G How can I identify in VBA if the current window is an item or a folder? Using Outlook 3
B Identify SMTP email submitted from IP or Application for rule creation? Exchange Server Administration 7
N How to centrally identify permissions granted to user mailbox. Using Outlook 1
S Identify Read Recepits Outlook VBA and Custom Forms 7
H Better way of writing Macro? Identify multiple types of attachmen Outlook VBA and Custom Forms 5
D How to identify a mail item from a public folder in MS Outlook Outlook VBA and Custom Forms 5
S Correct way to Identify is Mail is opened in Edit Mode Outlook VBA and Custom Forms 1
J Weekend View in Calendar Using Outlook 1
S Outlook 2007 Weekend Shading Using Outlook 12
A Create date folder and move messages daily Outlook VBA and Custom Forms 1
M Daily Task List Minimized Cannot Display Using Outlook 2
K Daily task list > show tasks on the exact due date and not on the "current date" Using Outlook 1
S Calendar Daily Eventy Grouping Using Outlook 1
N Daily email Using Outlook 2
X When travel between time zones Calendar Daily Items a fixed times vs Meetings? Using Outlook 2
P Daily Automatic Reply Using Outlook 1
E Adding Start and End Time to Daily View in Calendar Printing assistant Calendar Printing Assistant 1
M Rules - daily status (email) doesn't change much daily, save 1 per week how? Using Outlook 1
R Outlook 2010 Daily Calender need high detail Using Outlook 2
E Daily Task List customization Using Outlook 1
N Not able to receive daily emails. Using Outlook 3
A Daily Task List, set to show tasks on Due Date fails to display tasks. Using Outlook 2
A daily emails automatically Using Outlook 1
G Multiple Birthdays daily on calendar Using Outlook 3
C Can't remove duplicate Outlook Daily folder (and sub folders) Using Outlook 1
G Daily Activities Report in MS Outlook 2010 Business Contact Manager Using Outlook 1
D How do you add Notes into your daily calendar page you print Using Outlook 2
K Adding Notes to Daily Calendar View using Microsoft Outlook 2007. Using Outlook 1
L Cannot print NOTES on Calendar Daily Sheet??? Using Outlook 2
O office 2007 with outlook connector 12.1: synchronizing emails daily in a wrong way Using Outlook 2
N How do I archive/backup my corporate emails on a daily basis? Using Outlook 1
T Outlook meetings not showing up in Daily view Using Outlook 2
F Hundreds of junk emails coming in almost daily in Outlook 2010 Using Outlook 3
H Free/Busy information takes daily /cleanfreebusy to be up-to-date Using Outlook 7
Cathy Rhone New template: Daily Index Card Calendar Template for CPAO Calendar Printing Assistant 1
G Daily Task List for shared calendar Using Outlook 3
G What does 'daily limit has been reached' mean in Outlook 2007? BCM (Business Contact Manager) 1
H daily email count in Outlook Using Outlook 3
A Daily hours of recurring/ multi-day appts, & accessing mult calend Outlook VBA and Custom Forms 2
Similar threads











































Top