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

Outlook 2010 - ReminderSet not applying to recurring appointments after first appoint



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 20th 11, 02:34 PM
toddcjohnson68 toddcjohnson68 is offline
Junior Member
 
First recorded activity at Outlookbanter: Jul 2011
Posts: 1
Default Outlook 2010 - ReminderSet not applying to recurring appointments after first appoint

I am writing some code so that our users can create both an AllDayEvent Meeting Request as a notification that they are Out of Office (AllDayEvent=True, ReminderSet=False,ResponseRequested=False, BusyStatus=Free) and a corresponding appointment to block their own calendar (BusyStatus=OutofOffice) at one time.
The code works fine unless it is a recurring appointment. All the occurrences on the senders calendar are correct. However, the first occurrence on the recipients calendar has Reminder=None, but subsequent occurrences are Reminder= 15 minutes.
I have tried everything I know to get them all set the same as the first, but could now use some help.
Here is the code:
Private Sub Appt_Send(Cancel As Boolean)

'Does this have a OOO/WFH custom property set? This is set by a macro on the Meeting Request form
If Appt.MeetingStatus = olMeeting And Not (Appt.ItemProperties.Item("OOORequest") Is Nothing) Then

Dim new_appt As AppointmentItem
Dim RPOrig As RecurrencePattern
Dim RPNew As RecurrencePattern

Appt.ReminderSet = False

'Create appointment for sender's calendar
Set new_appt = Outlook.Application.CreateItem(olAppointmentItem)

With new_appt
.Subject = Appt.Subject + " appt"
.BusyStatus = olOutOfOffice
.ReminderSet = False
.Start = Appt.Start
.End = Appt.End
.Save
.Send
End With

'If recurring meeting, duplicate recurrence pattern for new appointment
If Appt.IsRecurring Then
Set RPOrig = Appt.GetRecurrencePattern
Set RPNew = new_appt.GetRecurrencePattern
RPNew = RPOrig
new_appt.Save

'Must clear recurrence on original appointment so we have permission to update the AllDayEvent flag
Appt.ClearRecurrencePattern
Appt.Save
End If

new_appt.Send

'Set Appointment to not bother recipients
With Appt
.Subject = .Subject + " meeting"
.ReminderSet = False
.ResponseRequested = False
.ForceUpdateToAllAttendees = True
.AllDayEvent = True 'Must be changed after new_appt created. This flag clears times in date variables
.BusyStatus = olFree 'Keeps from blocking recipients calendars
.Save
End With


'Reset recurrence pattern for original appointment
If new_appt.IsRecurring Then

Set RPOrig = Appt.GetRecurrencePattern
RPOrig = RPNew
Appt.Save

End If

'Release resources
Set new_appt = Nothing

End If

End Sub
Ads
 




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
Outlook 2010: Todo list not displaying Appointments Exsam Outlook - Calandaring 0 December 15th 10 08:03 PM
How do I change lots of Recurring appointments to Recurring events Pulu Outlook - Calandaring 5 May 14th 09 02:08 PM
.reminderset unwanted alarms cinnamngrl Outlook and VBA 1 September 14th 07 01:16 AM
Setting a recurring appoint for every other week? Snorrk Outlook - Calandaring 1 June 29th 07 09:03 PM
How do I fix a problem with my reminders on a recurring appoint. rburbank Outlook - Calandaring 1 October 24th 06 05:31 AM


All times are GMT +1. The time now is 04:31 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.