View Single Post
  #4  
Old June 10th 06, 07:01 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Macro to Move Mail Messages from Draft folder to other folders

Am Fri, 9 Jun 2006 04:49:01 -0700 schrieb VBnovice:

A good source for Add-ins is www.slipstick.com

If you google for "ItemAdd" in an Outlook programming newsgroup (e.g. this
one) there´re tons of samples.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


Michael - thanks for the start...but even that is above my head! I trided

to
use the code provided from another post and modify it. Not my strong

point.
Are there sources where i can just get an "add-in" or is there a source

where
someone has already written the code that i can just copy and paste? I

cant
imagine that i am doing somehting so unique - but i never know.

Any direction to a source where this is already done would be appreciated.
I just dont have the time right now to learn VBA...

"Michael Bauer" wrote:

Am Thu, 8 Jun 2006 12:01:02 -0700 schrieb VBnovice:

For to start the code you can use the ItemAdd event of the Drafts folder.

A
sample is available in the VBA help.

In that event check the Item´s Subject property with Instr. If it

contains
what you´re looking for then call its Move function, which is also

explained
in the help.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


HELP...Please...I am so a newby on the VB stuff.

I am trying to create a macro that will move messages from my Drafts

folder
to another folder, based on specific words in the subject line.

For example: In my drafts file, a message with "HEALTH:" would be moved

to
a unique folder called "Health Articles".

I would like the macro to run either as i save items intot the draft

folder,
or is there a way to also create a menu "button" to run the macro
automatically.

Thanks for the help!


Ads