Rule to Run a Script

T

Thomas M.

Outlook 2007

I'd like to know how to compose a rule that will run a script or perform a
custom action. When I select the run a script option in the Rules Wizard I
get the Select Script dialog box. I assume that I am suppose to select a
script from the list, but the list is empty. I'm guessing that my scripts
need to be placed in a particular folder in order to appear on the list. I
get the same thing with custom actions.

Also, I am connected to an Exchange server which I do not administer. Would
the script or custom action need to go on the Exchange server or can it be
local? If local, where do I need to place the script or custom action?

Thanks for any help that you can offer.

--Tom
 
M

Michael Bauer [MVP - Outlook]

Addtionally to Diane, the script must be Public and take a MailItem as
argument:

Public Sub WhatEver(Mail as Outlook.MailItem)
....
End Sub

--
Best regards
Michael Bauer - MVP Outlook
Manage and share your categories:
<http://www.vboffice.net/product.html?lang=en>


Am Tue, 16 Mar 2010 19:03:31 -0600 schrieb Thomas M.:
 
T

Thomas M.

Thanks! I've not done much with VBA in Outlook, but I've worked with Word
and Excel macros plenty, so I should be able to figure it out.

--Tom

Diane Poremsky said:
you need to put it in ThisOutlookSession in Outlook's VB editor.

--
Diane Poremsky [MVP - Outlook]

Outlook & Exchange Solutions Center: http://www.slipstick.com/

Outlook Tips by email:
mailto:[email protected]

EMO - a weekly newsletter about Outlook and Exchange:
mailto:[email protected]

Do you sync your mailbox with a smartphone or pda?
http://forums.slipstick.com/showthread.php?t=39473



Thomas M. said:
Outlook 2007

I'd like to know how to compose a rule that will run a script or perform
a custom action. When I select the run a script option in the Rules
Wizard I get the Select Script dialog box. I assume that I am suppose to
select a script from the list, but the list is empty. I'm guessing that
my scripts need to be placed in a particular folder in order to appear on
the list. I get the same thing with custom actions.

Also, I am connected to an Exchange server which I do not administer.
Would the script or custom action need to go on the Exchange server or
can it be local? If local, where do I need to place the script or custom
action?

Thanks for any help that you can offer.

--Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top