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?
 
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
> >
 
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.
Similar threads
Thread starter Title 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
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
K Daily Task List Minimized Cannot Display Using Outlook 5
M Calendar daily Appointments and printing Using Outlook 0
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 Using Outlook 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
Cathy Rhone 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

Similar threads

Back
Top