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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

ClearRecurrencePattern Problem



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 2nd 08, 11:39 AM posted to microsoft.public.outlook.program_vba
Mary Smith
external usenet poster
 
Posts: 3
Default ClearRecurrencePattern Problem

I imported some reoccurring appointments and I am using C# to get all
upcoming appointments. I found out you need to use ClearRecurrencePattern to
get the current appointment but it always show the appointments for last
year. If I enter new reoccurring appointments it works correctly. Any
ideas?



Ads
  #2  
Old June 2nd 08, 06:59 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default ClearRecurrencePattern Problem

??? Why exactly would you do that? What are you trying to do?
ClearRecurrencePattern removes the recurrence pattern and tuns a recurring
appointment to a non-recurring one with the start of the new appointmentset
to teh start of the first instance of the recurrence series.
If you need the upcoming appointments, look at
http://www.outlookcode.com/article.aspx?id=30
Pay attention to the "Recurring items" section.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Mary Smith" wrote in message
...
I imported some reoccurring appointments and I am using C# to get all
upcoming appointments. I found out you need to use ClearRecurrencePattern
to
get the current appointment but it always show the appointments for last
year. If I enter new reoccurring appointments it works correctly. Any
ideas?





  #3  
Old June 4th 08, 01:37 PM posted to microsoft.public.outlook.program_vba
Mary Smith
external usenet poster
 
Posts: 3
Default ClearRecurrencePattern Problem

I am trying to get a list of all upcoming appointments. When the appointment
is a recurrence I get the date it was started instead of the next
occurrence. Example one of my appointments was set to start on 1/16/2003
every year but instead of getting the next appointment which is 1/16/2009 I
get 1/16/2003. When I use ClearRecurrencePattern it removes the series and
return 1/16/2008 but I think it suppose to return 1/16/2009. Does this sound
correct? Here is a sample of my code.



bool OC = coAppointment.IsRecurring;



if (OC == false)

{

Console.WriteLine(newreminder);

Console.WriteLine(coAppointment.Start);

Console.WriteLine(coAppointment.IsRecurring);

}

else

{

Console.WriteLine(newreminder);

coAppointment.ClearRecurrencePattern;

Console.WriteLine(coAppointment.Start);

Console.WriteLine(coAppointment.IsRecurring);

}




"Dmitry Streblechenko" wrote in message
...
??? Why exactly would you do that? What are you trying to do?
ClearRecurrencePattern removes the recurrence pattern and tuns a
recurring appointment to a non-recurring one with the start of the new
appointmentset to teh start of the first instance of the recurrence
series.
If you need the upcoming appointments, look at
http://www.outlookcode.com/article.aspx?id=30
Pay attention to the "Recurring items" section.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Mary Smith" wrote in message
...
I imported some reoccurring appointments and I am using C# to get all
upcoming appointments. I found out you need to use ClearRecurrencePattern
to
get the current appointment but it always show the appointments for last
year. If I enter new reoccurring appointments it works correctly. Any
ideas?







  #4  
Old June 4th 08, 07:35 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default ClearRecurrencePattern Problem

Again, please see http://www.outlookcode.com/article.aspx?id=30 and read the
"Recurring items" section.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Mary Smith" wrote in message
...
I am trying to get a list of all upcoming appointments. When the
appointment is a recurrence I get the date it was started instead of the
next occurrence. Example one of my appointments was set to start on
1/16/2003 every year but instead of getting the next appointment which is
1/16/2009 I get 1/16/2003. When I use ClearRecurrencePattern it removes the
series and return 1/16/2008 but I think it suppose to return 1/16/2009.
Does this sound correct? Here is a sample of my code.



bool OC = coAppointment.IsRecurring;



if (OC == false)

{

Console.WriteLine(newreminder);

Console.WriteLine(coAppointment.Start);

Console.WriteLine(coAppointment.IsRecurring);

}

else

{

Console.WriteLine(newreminder);

coAppointment.ClearRecurrencePattern;

Console.WriteLine(coAppointment.Start);

Console.WriteLine(coAppointment.IsRecurring);

}




"Dmitry Streblechenko" wrote in message
...
??? Why exactly would you do that? What are you trying to do?
ClearRecurrencePattern removes the recurrence pattern and tuns a
recurring appointment to a non-recurring one with the start of the new
appointmentset to teh start of the first instance of the recurrence
series.
If you need the upcoming appointments, look at
http://www.outlookcode.com/article.aspx?id=30
Pay attention to the "Recurring items" section.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Mary Smith" wrote in message
...
I imported some reoccurring appointments and I am using C# to get all
upcoming appointments. I found out you need to use
ClearRecurrencePattern to
get the current appointment but it always show the appointments for last
year. If I enter new reoccurring appointments it works correctly. Any
ideas?









 




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
ClearRecurrencePattern Problem Mary Smith Outlook - General Queries 1 May 30th 08 07:16 PM
Outlook 2007 rules problem? CC problem? MGedge Outlook - General Queries 2 September 6th 07 03:04 AM
Receiving mail problem with" Enter Network Password" problem. Denzil Outlook - General Queries 5 February 25th 07 12:48 PM
conection problem on office 2003/instalation problem with beta 200 Martin O Outlook - Installation 0 September 16th 06 08:52 PM


All times are GMT +1. The time now is 04:10 PM.


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