Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Rule to set reminder if not set (http://www.outlookbanter.com/outlook-vba/89274-rule-set-reminder-if-not.html)

Bob Smith April 21st 09 12:46 AM

Rule to set reminder if not set
 
I'm going out of my mind here. I have a really simple rule that checks for
meeting requests as they arrive. If they have no reminder set, it's supposed
to set it. Seems simple enough. I even put a msgbox in for the subject to
ensure it actuallly fires. What am I missing, the reminder does not get set.

Sub SetReminder(Item As MeetingItem)
If ReminderSet = False Then
msgbox item.subject
Item.ReminderMinutesBeforeStart = 15
Item.ReminderSet = True
Item.Save
End If

Set Item = Nothing
End Sub

Ken Slovak - [MVP - Outlook] April 21st 09 03:32 PM

Rule to set reminder if not set
 
If Item.ReminderSet = False Then


--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Bob Smith" wrote in message
...
I'm going out of my mind here. I have a really simple rule that checks for
meeting requests as they arrive. If they have no reminder set, it's
supposed
to set it. Seems simple enough. I even put a msgbox in for the subject to
ensure it actuallly fires. What am I missing, the reminder does not get
set.

Sub SetReminder(Item As MeetingItem)
If ReminderSet = False Then
msgbox item.subject
Item.ReminderMinutesBeforeStart = 15
Item.ReminderSet = True
Item.Save
End If

Set Item = Nothing
End Sub



Bob Smith April 21st 09 05:21 PM

Rule to set reminder if not set
 
Sorry slight modification to that code, I should have copied and pasted.
Still have the issue.

Sub SetReminder(Item As MeetingItem)
If item.ReminderSet = False Then
msgbox item.subject
Item.ReminderMinutesBeforeStart = 15
Item.ReminderSet = True
Item.Save
End If
End Sub

"Bob Smith" wrote:

I'm going out of my mind here. I have a really simple rule that checks for
meeting requests as they arrive. If they have no reminder set, it's supposed
to set it. Seems simple enough. I even put a msgbox in for the subject to
ensure it actuallly fires. What am I missing, the reminder does not get set.

Sub SetReminder(Item As MeetingItem)
If ReminderSet = False Then
msgbox item.subject
Item.ReminderMinutesBeforeStart = 15
Item.ReminderSet = True
Item.Save
End If

Set Item = Nothing
End Sub


Sue Mosher [MVP][_3_] April 21st 09 06:25 PM

Rule to set reminder if not set
 
Have you tried setting the reminder on the appointment?

Dim appt As Outlook.AppointmentItem
If Item.ReminderSet = False Then
MsgBox Item.Subject
Set appt = Item.GetAssociatedAppointment
With appt
.ReminderMinutesBeforeStart = 15
.ReminderSet = True
.Save
End With
End If

And if that doesn't work, maybe the solution is to use not a "run a script"
rule but code to monitor the Calendar folder for new items using the
Items.ItemAdd event.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Bob Smith" wrote in message
...
I'm going out of my mind here. I have a really simple rule that checks for
meeting requests as they arrive. If they have no reminder set, it's
supposed
to set it. Seems simple enough. I even put a msgbox in for the subject to
ensure it actuallly fires. What am I missing, the reminder does not get
set.

Sub SetReminder(Item As MeetingItem)
If ReminderSet = False Then
msgbox item.subject
Item.ReminderMinutesBeforeStart = 15
Item.ReminderSet = True
Item.Save
End If

Set Item = Nothing
End Sub




Bob Smith April 21st 09 08:13 PM

Rule to set reminder if not set
 
Got it working, had to go to the assocciated meeting item.

"Bob Smith" wrote:

Sorry slight modification to that code, I should have copied and pasted.
Still have the issue.

Sub SetReminder(Item As MeetingItem)
If item.ReminderSet = False Then
msgbox item.subject
Item.ReminderMinutesBeforeStart = 15
Item.ReminderSet = True
Item.Save
End If
End Sub

"Bob Smith" wrote:

I'm going out of my mind here. I have a really simple rule that checks for
meeting requests as they arrive. If they have no reminder set, it's supposed
to set it. Seems simple enough. I even put a msgbox in for the subject to
ensure it actuallly fires. What am I missing, the reminder does not get set.

Sub SetReminder(Item As MeetingItem)
If ReminderSet = False Then
msgbox item.subject
Item.ReminderMinutesBeforeStart = 15
Item.ReminderSet = True
Item.Save
End If

Set Item = Nothing
End Sub



All times are GMT +1. The time now is 09:15 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com