Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to add a custom script to process Outlook meeting requests. (see this question) The dropdown menu for selecting scripts is empty and there doesn't appear to be a way to add scripts. How can I add a script that will be available via Outlook's rules?

share|improve this question

2 Answers 2

up vote 5 down vote accepted
+150

In Outlook go to Tools > Macro > visual Basic Editor

R-click on Project 1 and select Insert > Module

In Module1 add the following code:

Sub CustomMeetingRequestRule(Item As Outlook.MeetingItem)
    If Item.ReminderSet = False Then  
        Item.GetAssociatedAppointment(False).ReminderMinutesBeforeStart = 15 
    End If
End Sub

Click on Save

Make your rule and the script should appear as a selection when you click on the 'a script' link.

The code should perform what you were after in your other question but haven't tested it.

Reference link: http://support.microsoft.com/kb/306108

share|improve this answer
    
I'm getting a popup error message on the script. Compile error: Argument not optional - with highlighted text ".GetAssociatedAppointment" –  Chris Nava Oct 20 '09 at 16:56
    
Should have tested :) How about the following between Sub and End Sub? If Item.ReminderSet = False Then Item.GetAssociatedAppointment(False).ReminderMinutesBeforeStart = 15 End If This should set any appointment without a reminder with a 15 min reminder. If you want to set all meeting requests you receive to 15 min reminder then remove the If and End if lines –  acripps Oct 21 '09 at 11:31
    
Modified code in answer –  acripps Oct 24 '09 at 1:23

Scripts in Outlook are also known as macros. I believe Alt+F11 will bring up the VBA script editor for Outlook macros.

share|improve this answer
    
Yes, alt-F11 works but I believe you have to use it from an open e-mail message.. Also you can use File/Options/Customize Ribbon and enable Developer if that option is not already in the ribbon. –  Gary Apr 14 '13 at 14:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.