PC Review


Reply
Thread Tools Rate Thread

Changing AppointmentItem.Subject split recurrence (series)

 
 
Mk23
Guest
Posts: n/a
 
      6th Feb 2008
Hi

I have a problem by manipulating Appointment items properties. Our addin
manipulates the subject of appointmentItems.
When i have a recurrence appointmentitem, and I manipulate the subject, the
recurrence will be shown as split in the Outlook.

I tried to set the new subject over the recurrence pattern, but there is no
property that offers an operation like this. I also tried to set the subject
only at the first appointment of the recurrence, but the result was, that
only the one I manipulatet showed also the right subject.

Has someone any idea?

 
Reply With Quote
 
 
 
 
Michael Bauer [MVP - Outlook]
Guest
Posts: n/a
 
      7th Feb 2008


This works like a charm:

Set Folder=Application.Session.GetDefaultFolder(olFolderCalendar)
Set obj=Folder.Items("testitem")
if not obj is nothing then
obj.subject="hallo testitem"
obj.save
end if

--
Best regards
Michael Bauer - MVP Outlook
Outlook Categories? The Tool:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Wed, 6 Feb 2008 09:27:02 -0800 schrieb Mk23:

> Hi
>
> I have a problem by manipulating Appointment items properties. Our addin
> manipulates the subject of appointmentItems.
> When i have a recurrence appointmentitem, and I manipulate the subject,

the
> recurrence will be shown as split in the Outlook.
>
> I tried to set the new subject over the recurrence pattern, but there is

no
> property that offers an operation like this. I also tried to set the

subject
> only at the first appointment of the recurrence, but the result was, that
> only the one I manipulatet showed also the right subject.
>
> Has someone any idea?

 
Reply With Quote
 
Mk23
Guest
Posts: n/a
 
      7th Feb 2008
This I tried naturally allready. But the problem of the splitted recurrence
remain.
 
Reply With Quote
 
Dmitry Streblechenko
Guest
Posts: n/a
 
      8th Feb 2008
Do you mean you get an exception in the series?
That means you are modifying one of the instances of the appointment, not
the master appointment.
Check if the AppointmentItem.RecurrenceState property is olApptOccurrence (=
2) or olApptException (=3) and use Parent property, which will return the
master appointment.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Mk23" <(E-Mail Removed)> wrote in message
news:0D75332F-ED4E-4640-BACC-(E-Mail Removed)...
> This I tried naturally allready. But the problem of the splitted
> recurrence
> remain.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change subject of recurrence appointments without breaking serie Mk23 Microsoft Outlook Program Addins 1 23rd Jun 2008 05:35 PM
Set AppointmentItem.Sensitivity in Recurrence Mk23 Microsoft Outlook Program Addins 0 20th Jun 2008 02:22 PM
Changing font in AppointmentItem Notes Pierre Scerri Microsoft Outlook VBA Programming 1 10th May 2008 11:27 PM
Can't save AppointmentItem properties of recurrence appointment Mk23 Microsoft Outlook Program Addins 4 15th Feb 2008 01:05 PM
How to identify the modification of whole recurrence series, when the recurrence pattern contains exceptions Maya Microsoft Outlook Calendar 0 13th Apr 2004 01:28 AM


Features
 

Advertising
 

Newsgroups
 


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