View Single Post
  #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


Ads