# 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?

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

> > sgrosch1
> >

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.

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

>

>

> --

> sgrosch1

>

>

Status
Not open for further replies.
Thread starter Title Forum Replies Date
Identify Number of email messages opened Outlook VBA and Custom Forms 7
VBA to identify a specific email and copy the attachment from it to the network Outlook VBA and Custom Forms 4
Best way to identify/designate contacts in incoming emails? Using Outlook 4
How can I easily identify and delete from my contacts defunct email addresses? Using Outlook 2
How can I identify in VBA if the current window is an item or a folder? Using Outlook 3
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
Weekend View in Calendar Using Outlook 1
S Outlook 2007 Weekend Shading Using Outlook 12
Daily Task List Minimized Cannot Display Using Outlook 5
Calendar daily Appointments and printing Using Outlook 0
Create date folder and move messages daily Outlook VBA and Custom Forms 1
Daily Task List Minimized Cannot Display Using Outlook 2
Daily task list > show tasks on the exact due date and not on the "current date" Using Outlook 1
Calendar Daily Eventy Grouping Using Outlook 1
Daily email Using Outlook 2
When travel between time zones Calendar Daily Items a fixed times vs Meetings? Using Outlook 2
Daily Automatic Reply Using Outlook 1
Adding Start and End Time to Daily View in Calendar Printing assistant Using Outlook 1
Rules - daily status (email) doesn't change much daily, save 1 per week how? Using Outlook 1
Outlook 2010 Daily Calender need high detail Using Outlook 2
Daily Task List customization Using Outlook 1
New template: Daily Index Card Calendar Template for CPAO Using Outlook 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