Solved

[Outlook] How to get the Range of Recurrence in Event?

Posted on 2003-11-21
8
703 Views
Last Modified: 2008-02-01
Hi All,

Now, I am using VB code to write an Add-in to plug to oultook to get event data . But I don't know exactly How to get the Range of Recurrence???

Below is my code:

Dim myEvent As MYEVENTLib
Dim olEvent As Outlook.AppointmentItem
.....

If olEvent.IsRecurring Then
Set olRecurPattern = olEvent.GetRecurrencePattern
If Not olRecurPattern Is Nothing Then
Set myRecurPattern = myEvent.GetRecurPattern
If olRecurPattern.NoEndDate Then
myRecurPattern.Range = 0 'No End Date
Else If ??? Then
myRecurPattern.Range = 1 'End After
Else
myRecurPattern.Range = 2 'End By
End If
End If
End If

Please help me how to handle it.

Thanks a lot.
0
Comment
Question by:dtdphuc
  • 4
  • 2
8 Comments
 
LVL 7

Expert Comment

by:wsteegmans
ID: 9796373
Maybe this can help?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaol10/html/olobjRecurrencePattern.asp

What are the different possibilties you're trying to work out?
0
 
LVL 7

Expert Comment

by:wsteegmans
ID: 9836877
Can you please give some more specific information ...

Can you also take a look and close your many many old questions!

1 11/21/2003 500 [Outlook] How to get the Range of Recurr...  Open Programming Languages
2 11/05/2003 100 Outlook:How to distinguish between recur...  Open Visual Basic
3 11/05/2003 100 STL: How to declare the map template???  Open C++ Programming
4 08/13/2003 500 Selectbox does not refresh when changing...  Open JavaScript
5 05/23/2003 200 Using onKeyPress/onChange/onBlur on text...  Open Programming
6 05/02/2003 200 How to prevent the user hits "Enter" key...  Open JavaScript
7 05/02/2003 200 Form will be resetted to blank after the...  Open JavaScript
8 01/21/2003 50 How to fix error when using Require Vali...  Open C#
9 01/10/2003 50 How to get Session variable information ...  Open C#
10 11/27/2002 20 How to use Response.Redirect after using...  Open C#
11 11/07/2002 20 How to get hidden field value from other...  Open C#

Thx!
0
 

Author Comment

by:dtdphuc
ID: 9841459
Hi Wsteegman,

Firstly, thanks a lot for your answer, but your response is not my purpose. Now I am using the VB to create Add-in App to plug in Outlook. I want to get data from OL and then set them to my App and reverse. But when I catch the OL Recurring Event(Outlook.Appointment), the Range of Recurrence, but the End Date and Occurrence properties are both have value because they auto recalculate if one of them is set. You can refer at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaol10/html/olproOccurrences.asp

And my problem is how to know the user select End By or End
Date optional selection.

By the way, please show me how to close my old questions. Thanks again.

Best regards,
dtdphuc
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 7

Expert Comment

by:wsteegmans
ID: 9844032
dtdphuc,

Can you poste the code where the problem occurrs. Little bit more easy to lookup the problem, ...

Closing your questions:
- Just click on your name (it's a link to your profile)
- Look up 'Question History' and click on 'View'
- All your questions are there

For each question, take a look if there is a good answer. If so, close the question and assign the points to the Expert who gave the answer.
If there was no Comment that helped you, you can also delete the question.

Everything about closing questions (please read this)
http://www.experts-exchange.com/help.jsp#hs5

Regards!
0
 
LVL 7

Expert Comment

by:wsteegmans
ID: 9852534
I was hoping we could continue this question, because I think it is a very interesting one (could also learn something from it)

However, the author found the answer himselves, or doesn't need the answer anymore???????
OK, if the author asked for deleting the question ...

Regards!
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 9877533
PAQ'd and refunded 500 points.

modulo

Community Support Moderator
Experts Exchange
0
 

Author Comment

by:dtdphuc
ID: 9887385
Hi wsteegmans,

Thanks for your interesting. But it is not a critical issue because the data is right (Ex: If you selected "End date" in OL but after sync-ing the seletion change to "End By" because I can only control the occurrence of Recurrence Pattern). Beside I was too busy now for another tasks, I will post my code to sync between OL<-> My App later.

Thanks too much again.
Sorry for my inconvenience.
dtdphuc
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now