Outlook Macros that parses and moves to a folder

  • Thread starter Thread starter mike Solas
  • Start date Start date
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.
 
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.
 
Back
Top