Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2003-11-21
8
Medium Priority
?
718 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

885 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