Outlook Macros that parses and moves to a folder

M

mike Solas

Hi I am new to programming macros for Outlook however I am familiar with
VB. I am trying to write a Macro that searches the inbox for a specific
email address and moves it to a folder.

Something that does this:
For each “email address = (e-mail address removed) “move to folder “temp”

Thank you in advance.
 
M

Michael Bauer [MVP - Outlook]

Am Mon, 28 Aug 2006 07:09:39 -0700 schrieb mike Solas:

The folder has an Items collection you can loop through with For Each.

Dim obj as Object
For each obj in Items
...
Next

An MailItem object can have different mail addresses, please see the object
browser (F2) for details (ReplyRecipients, Sender, Recipients). And it has a
Move method, which you can pass to the target folder object.
 

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