J
Joseph Rees
I have a person I work with that consistently forgets to check the "reminder"
box when sending out meeting makers. Coincidently, this causes others (myself
included) from attending her meetings on time which frustrates everyone. I am
looking for a way to check for new meetings as they arrive and to add a
reminder to each and every one I receive so that I never miss seeing them.
I've been experimenting with VBA to create a script for a rule, but even the
simplest sample code I find I can't seem to get working. I found one that was
supposed to just bring up a msgbox for new meetings and just echo that you
had a new meeting request and what the subject was. I added it into
ThisOutlookSession and created a new rule and chose that item for the script
and it does nothing. Can someone please help me get this setup? I have no
need/intent to learn VBA for Outlook completely. I just want to get this one
thing accomplished.
Here is the current code I have in my outlook rule:
Sub AddReminder(MyMeeting As MeetingItem)
Dim strID As String
Dim olNS As Outlook.NameSpace
Dim olMeeting As Outlook.MeetingItem
strID = MyMeeting.EntryID
Set olNS = Application.GetNamespace("MAPI")
Set olMeeting = olNS.GetItemFromID(strID)
olMeeting.ReminderOverrideDefault = True
olMeeting.ReminderMinutesBeforeStart = 15
olMeeting.ReminderSet = True
olMeeting.Save
Set olMeeting = Nothing
Set olNS = Nothing
End Sub
If someone can help me out, I'd REALLY appreciate it.
THANKS!!
box when sending out meeting makers. Coincidently, this causes others (myself
included) from attending her meetings on time which frustrates everyone. I am
looking for a way to check for new meetings as they arrive and to add a
reminder to each and every one I receive so that I never miss seeing them.
I've been experimenting with VBA to create a script for a rule, but even the
simplest sample code I find I can't seem to get working. I found one that was
supposed to just bring up a msgbox for new meetings and just echo that you
had a new meeting request and what the subject was. I added it into
ThisOutlookSession and created a new rule and chose that item for the script
and it does nothing. Can someone please help me get this setup? I have no
need/intent to learn VBA for Outlook completely. I just want to get this one
thing accomplished.
Here is the current code I have in my outlook rule:
Sub AddReminder(MyMeeting As MeetingItem)
Dim strID As String
Dim olNS As Outlook.NameSpace
Dim olMeeting As Outlook.MeetingItem
strID = MyMeeting.EntryID
Set olNS = Application.GetNamespace("MAPI")
Set olMeeting = olNS.GetItemFromID(strID)
olMeeting.ReminderOverrideDefault = True
olMeeting.ReminderMinutesBeforeStart = 15
olMeeting.ReminderSet = True
olMeeting.Save
Set olMeeting = Nothing
Set olNS = Nothing
End Sub
If someone can help me out, I'd REALLY appreciate it.
THANKS!!