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

Rule to set reminder if not set



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 21st 09, 12:46 AM posted to microsoft.public.outlook.program_vba
Bob Smith
external usenet poster
 
Posts: 34
Default 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
Ads
  #2  
Old April 21st 09, 03:32 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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


  #3  
Old April 21st 09, 05:21 PM posted to microsoft.public.outlook.program_vba
Bob Smith
external usenet poster
 
Posts: 34
Default 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

  #4  
Old April 21st 09, 06:25 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default 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



  #5  
Old April 21st 09, 08:13 PM posted to microsoft.public.outlook.program_vba
Bob Smith
external usenet poster
 
Posts: 34
Default 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

 




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
new rule alexanderd Outlook - General Queries 4 April 6th 09 05:34 PM
How can I use 'OR' in a rule Elmo Outlook and VBA 1 July 17th 07 03:19 AM
How to setup a rule to forward rule in Outlook (xp or 2003) to forward emails from a certain domain when app isnt running? KingCronos Outlook - General Queries 7 November 15th 06 12:22 PM
Can I set rule for BCC Ed [MCT] Outlook - General Queries 1 October 17th 06 11:04 AM
sent items rule Marius Kaizerman Outlook - General Queries 7 September 14th 06 08:16 AM


All times are GMT +1. The time now is 08:22 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-2025 Outlook Banter.
The comments are property of their posters.