Solved

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

Posted on 2003-11-21
8
709 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
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 …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

789 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