A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Creating yearly recurrence appointment



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 15th 09, 03:25 PM posted to microsoft.public.outlook.program_addins
hemaneelagiri via OfficeKB.com
external usenet poster
 
Posts: 22
Default Creating yearly recurrence appointment

i am creating recurring appointments from my code..
i am following help file from vba editor
every thing working perfectly

except when i select my recuuring pattern

Yearly January 3rd for 10 occurances and start date is today(ie: 10/15/2009)

i am giving like bellow

recurrencePattern.RecurrenceType = Microsoft.Office.Interop.Outlook.
OlRecurrenceType.olRecursYearly;

recurrencePattern.DayOfMonth = 3;
recurrencePattern.MonthOfYear = 1;


means it sholud start from janudary 3rd 2010

but it is not certaing on january..
it is creating on october 3rd

please help me

--
Message posted via http://www.officekb.com

Ads
  #2  
Old October 15th 09, 04:04 PM posted to microsoft.public.outlook.program_addins
hemaneelagiri via OfficeKB.com
external usenet poster
 
Posts: 22
Default Creating yearly recurrence appointment

and i want to create daily Evry weekday, how can v set every week day , if v
give
Interval then it sets daily

how can we set "DayOfWeekMask"

when i set like this
recurrencePattern.DayOfWeekMask = Microsoft.
Office.Interop.Outlook.OlDaysOfWeek.olMonday | Microsoft.Office.Interop.
Outlook.OlDaysOfWeek.olTuesday | Microsoft.Office.Interop.Outlook.
OlDaysOfWeek.olWednesday | Microsoft.Office.Interop.Outlook.OlDaysOfWeek.
olThursday | Microsoft.Office.Interop.Outlook.OlDaysOfWeek.olFr iday;


it is giving error
please help me

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200910/1

  #3  
Old October 15th 09, 07:45 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Creating yearly recurrence appointment

If you look at the VBA Help on the MonthOfYear property you will see that
setting it to 1 wouldn't mean the recurrence starts in January, it means
that it should only recur every January. However, that can be changed or
overridden by other settings you make and the order in which they are set.

If I wanted a yearly recurrence starting on January 3, 2010 I'd set the
StartTime to January 3 at a specific time and set a yearly recurrence.

So, in pseudocode:

set recurrence type to yearly
set recurrence start to January 3, 2010
set occurrences to 10

Because you often find that the actual pattern generated from settings in
the UI dialog don't match I've found the best way to handle things if I have
questions is to create an actual dummy recurring appointment with the
pattern I want in the UI dialog, then I analyze the resulting
RecurrencePattern on the recurring series to see how Outlook interpreted the
pattern I wanted.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"hemaneelagiri via OfficeKB.com" u54138@uwe wrote in message
news:9da152f9bff3f@uwe...
i am creating recurring appointments from my code..
i am following help file from vba editor
every thing working perfectly

except when i select my recuuring pattern

Yearly January 3rd for 10 occurances and start date is today(ie:
10/15/2009)

i am giving like bellow

recurrencePattern.RecurrenceType = Microsoft.Office.Interop.Outlook.
OlRecurrenceType.olRecursYearly;

recurrencePattern.DayOfMonth = 3;
recurrencePattern.MonthOfYear = 1;


means it sholud start from janudary 3rd 2010

but it is not certaing on january..
it is creating on october 3rd

please help me

--
Message posted via http://www.officekb.com


  #4  
Old October 15th 09, 07:49 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Creating yearly recurrence appointment

Are you setting the recurrence type to recurs weekly first? Then you OR the
days you want into the mask you set. To make things easier to debug I derive
the OR'd value first and then set that result for the DayOfWeekMask
property.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"hemaneelagiri via OfficeKB.com" u54138@uwe wrote in message
news:9da1a9f43840b@uwe...
and i want to create daily Evry weekday, how can v set every week day , if
v
give
Interval then it sets daily

how can we set "DayOfWeekMask"

when i set like this
recurrencePattern.DayOfWeekMask =
Microsoft.
Office.Interop.Outlook.OlDaysOfWeek.olMonday | Microsoft.Office.Interop.
Outlook.OlDaysOfWeek.olTuesday | Microsoft.Office.Interop.Outlook.
OlDaysOfWeek.olWednesday | Microsoft.Office.Interop.Outlook.OlDaysOfWeek.
olThursday | Microsoft.Office.Interop.Outlook.OlDaysOfWeek.olFr iday;


it is giving error
please help me

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200910/1


  #5  
Old October 16th 09, 07:11 AM posted to microsoft.public.outlook.program_addins
hemaneelagiri via OfficeKB.com
external usenet poster
 
Posts: 22
Default Creating yearly recurrence appointment

Hi
Thanks for your support


i am setting the recurrence type to recurs daily and i am setting
recurrencePattern.DayOfWeekMask = (Microsoft.Office.Interop.Outlook.
OlDaysOfWeek)62;
then it is giving bellow error
"The property for the recurrence type is not valid. Verify your code."

if i set weekly and dayofmask it is working properly but when i recurrence
pattern there weekly type and week days checkbox is selecting but i want to
select daily and weekday options

Thanks

--
Message posted via http://www.officekb.com

  #6  
Old October 16th 09, 03:55 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Creating yearly recurrence appointment

You have to use code that works, not what you'd like to use. If those are
the settings you want you have to use the weekly type with the day of the
week mask set. Otherwise it won't work.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"hemaneelagiri via OfficeKB.com" u54138@uwe wrote in message
news:9da9942b1c42d@uwe...
Hi
Thanks for your support


i am setting the recurrence type to recurs daily and i am setting
recurrencePattern.DayOfWeekMask = (Microsoft.Office.Interop.Outlook.
OlDaysOfWeek)62;
then it is giving bellow error
"The property for the recurrence type is not valid. Verify your code."

if i set weekly and dayofmask it is working properly but when i
recurrence
pattern there weekly type and week days checkbox is selecting but i want
to
select daily and weekday options

Thanks

--
Message posted via http://www.officekb.com


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recurrence 5 yearly Reminders/Appointment ToxtethOGrady Outlook - Calandaring 2 November 7th 07 04:04 PM
How do I make a bi-yearly recurrence for an appointment? Pamela Gill Outlook - Calandaring 3 July 6th 07 04:38 AM
Creating Yearly patterned Repeat Groups is useful Aleida Outlook - Calandaring 1 September 29th 06 01:10 AM
Setting a Reminder on events with a Yearly Recurrence pattern Daniel Smith Outlook - Calandaring 0 May 7th 06 03:00 PM


All times are GMT +1. The time now is 01:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.