Polling the outlook inbox

  • Thread starter Thread starter Steven Wathen
  • Start date Start date
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??
 
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
 
Back
Top