Polling the outlook inbox

S

Steven Wathen

Hi,

Is there a way of polling the outlook inbox so that when a new email
is recieved a piece of code is started. My reason for asking this is
because i am trying to develope a program in VBA to run in the
background. When an email is received a piece of code is triggered which
saves the attachment of the email and opens the attachment in excel.

Is there a way of doing this??
 
D

Dmitry Streblechenko

Use Application.NewMail event or MAPIFolder.Items.ItemAdd event (where
MAPIFolder points to the Inbox folder).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

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