Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2003-11-21
8
Medium Priority
?
715 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
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 …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

715 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