Group:  Microsoft Outlook » microsoft.public.outlook.program_vba
Thread: VBA Outlook 2003 - Customized rules

Geek News

VBA Outlook 2003 - Customized rules
"thomas" <nomail> 12/21/2008 5:56:49 PM
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


Re: VBA Outlook 2003 - Customized rules
"Michael Bauer [MVP - Outlook]" <mb[ at ]mvps.org> 12/22/2008 6:34:14 AM


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:

[Quoted Text]
> 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
Re : VBA Outlook 2003 - Customized rules
"thomas" <nomail> 12/22/2008 9:58:48 AM
Thanks,

is there any code example somewhere on the web?



"Michael Bauer [MVP - Outlook]" <mb[ at ]mvps.org> a écrit dans le message de
groupe de discussion : mcjrj779osae.19632re3vwzwc$.dlg[ at ]40tude.net...


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:

[Quoted Text]
> 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

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net