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

deleting a periodic appointment with a "delete exception"



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 3rd 06, 05:12 PM posted to microsoft.public.outlook.program_vba
Hans Baumann
external usenet poster
 
Posts: 2
Default deleting a periodic appointment with a "delete exception"

Hi everyone,

I'm developing an Outlook plug-in to sync appointments from a database,
everything goes OK, but when I try to delete an appointment at runtime (with
code), it generates an error. The strange part is that it only happens with
appointments with a "delete exception".

Anybody knows what should be done before trying to delete that object? I'm
in a hurry, please!! any leads to solve this problem?

I'm coding in VS.net 2003, and the add-in is running under outlook 2003 (I
don't care older versions of outlook)

Thanks in advance
Hans.


Ads
  #2  
Old April 3rd 06, 05:19 PM posted to microsoft.public.outlook.program_vba
Hans Baumann
external usenet poster
 
Posts: 2
Default deleting a periodic appointment with a "delete exception"

Another clue, if I try to delete an appointment in Outlook, it asks me if I
want to delete all the serie or just that "exception", and perhaps that's
why I can't delete at runtime, Is there a way to tell which apointment I
want to delete at runtime?

"Hans Baumann" escribió en el mensaje
...
Hi everyone,

I'm developing an Outlook plug-in to sync appointments from a database,
everything goes OK, but when I try to delete an appointment at runtime
(with code), it generates an error. The strange part is that it only
happens with appointments with a "delete exception".

Anybody knows what should be done before trying to delete that object? I'm
in a hurry, please!! any leads to solve this problem?

I'm coding in VS.net 2003, and the add-in is running under outlook 2003 (I
don't care older versions of outlook)

Thanks in advance
Hans.



  #3  
Old April 3rd 06, 09:16 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default deleting a periodic appointment with a "delete exception"

You could use the GetOccurrence method of the RecurrencePattern to see if
you can get that specific occurrence. If you can't get it that way you then
check the Exceptions collection of the RecurrencePattern. Each Exception
object in that collection has an OriginalDate property as well as a Deleted
Boolean property. That should be enough for you to get at the correct item.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Hans Baumann" wrote in message
...
Another clue, if I try to delete an appointment in Outlook, it asks me if
I want to delete all the serie or just that "exception", and perhaps
that's why I can't delete at runtime, Is there a way to tell which
apointment I want to delete at runtime?

"Hans Baumann" escribió en el mensaje
...
Hi everyone,

I'm developing an Outlook plug-in to sync appointments from a database,
everything goes OK, but when I try to delete an appointment at runtime
(with code), it generates an error. The strange part is that it only
happens with appointments with a "delete exception".

Anybody knows what should be done before trying to delete that object?
I'm in a hurry, please!! any leads to solve this problem?

I'm coding in VS.net 2003, and the add-in is running under outlook 2003
(I don't care older versions of outlook)

Thanks in advance
Hans.




 




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
delete names from "other users folders" drop down in outlook Yonda Outlook - Calandaring 1 March 28th 06 04:18 AM
Purpose of "Delete Expired Items" in Outlook Auto-archive Window? Mark S. Outlook - Installation 1 January 17th 06 09:55 PM
Outlook - delete a reoccurring appointment, from "this point on" haveaniceday Outlook - Calandaring 2 January 17th 06 07:03 PM
Don't use "X" in outlook as delete icon, it looks like "close" HuskieChem Outlook - Installation 1 January 9th 06 02:02 AM
How to delete Suggested Matches from "Search for Files and Folders" [email protected] Outlook - General Queries 0 January 9th 06 01:58 AM


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


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