VBA Outlook 2003 - Customized rules

T

thomas

Hello,

In my company the number of rules in outlook 2003 is limited nsince they
changed the setup to have imap. I can make as many rules as i want but only
about 50 will be activated.

Is there a way with VBA to have my own rules, for incoming as well as for
outcoming mails?

Thanks
 
M

Michael Bauer [MVP - Outlook]

You can handle incoming e-mails in the ItemAdd event of the inbox, and
outgoing ones in the ItemSent event of the Application object.

As you are probably connected to a mail server, the ItemAdd event fires only
if Outlook is running. If it's not, and your mail server receives the
e-mail, you won't get the event if you later turn on Outlook. For that case
you could also use the Application_Startup event and see if there's any item
in the inbox that you haven't yet handled.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Sun, 21 Dec 2008 18:56:49 +0100 schrieb thomas:
 
T

thomas

Thanks,

is there any code example somewhere on the web?



"Michael Bauer [MVP - Outlook]" <[email protected]> a écrit dans le message de
groupe de discussion : [email protected]...


You can handle incoming e-mails in the ItemAdd event of the inbox, and
outgoing ones in the ItemSent event of the Application object.

As you are probably connected to a mail server, the ItemAdd event fires only
if Outlook is running. If it's not, and your mail server receives the
e-mail, you won't get the event if you later turn on Outlook. For that case
you could also use the Application_Startup event and see if there's any item
in the inbox that you haven't yet handled.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Sun, 21 Dec 2008 18:56:49 +0100 schrieb thomas:
 

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