A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Need Outlook Macro To Auto-Forward New Messages



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 19th 07, 10:36 PM posted to microsoft.public.outlook.program_vba
snowmangoh
external usenet poster
 
Posts: 2
Default Need Outlook Macro To Auto-Forward New Messages

I need a macro to autoforward new mesages in my Inbox every 15 minutes to a
specified address and then move them to a folder I will call "forwarded". I
can't use a rule due to my exchange servers security protocols. PLEASE HELP!
thanks!
Ads
  #2  
Old June 20th 07, 07:40 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Need Outlook Macro To Auto-Forward New Messages



Here's a sample for an API timer:
http://www.vboffice.net/sample.html?...4&cmd=showitem

You can use that to call a procedure every 15 minutes. In that procedure
loop through the Inbox' Items collection backwards; call each item's Forward
function, which returns a new MailItem object. Add the address to the item's
Recipients collection and then call its Send method. After that call its
Move function.

All mentioned functions are explained in the VBA help with code samples.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize Outlook email:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Tue, 19 Jun 2007 13:36:42 -0700 schrieb snowmangoh:

I need a macro to autoforward new mesages in my Inbox every 15 minutes to

a
specified address and then move them to a folder I will call "forwarded".

I
can't use a rule due to my exchange servers security protocols. PLEASE

HELP!
thanks!

  #3  
Old June 20th 07, 08:28 AM posted to microsoft.public.outlook.program_vba
snowmangoh
external usenet poster
 
Posts: 2
Default Need Outlook Macro To Auto-Forward New Messages

Thanx a ton for your reply, but I am a total noob to VBA, and while I have
been through the help files I can't find/figure out what I need... If I sent
someone my personal email, could you send me the code I need to paste in?
Thanks again!

"Michael Bauer [MVP - Outlook]" wrote:



Here's a sample for an API timer:
http://www.vboffice.net/sample.html?...4&cmd=showitem

You can use that to call a procedure every 15 minutes. In that procedure
loop through the Inbox' Items collection backwards; call each item's Forward
function, which returns a new MailItem object. Add the address to the item's
Recipients collection and then call its Send method. After that call its
Move function.

All mentioned functions are explained in the VBA help with code samples.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize Outlook email:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Tue, 19 Jun 2007 13:36:42 -0700 schrieb snowmangoh:

I need a macro to autoforward new mesages in my Inbox every 15 minutes to

a
specified address and then move them to a folder I will call "forwarded".

I
can't use a rule due to my exchange servers security protocols. PLEASE

HELP!
thanks!


  #4  
Old September 11th 07, 07:34 PM posted to microsoft.public.outlook.program_vba
sabrina
external usenet poster
 
Posts: 26
Default Need Outlook Macro To Auto-Forward New Messages

Hi Michael

First time on this forum. The article wrote below pretty much reflects my
position, as in i need OL to auto forward emails to another address and move
a copy to 'archive'

can you please provide any further articles/samples on this as its the first
time i've seen Redemption

Many thanks

Robin

"Michael Bauer [MVP - Outlook]" wrote:



Here's a sample for an API timer:
http://www.vboffice.net/sample.html?...4&cmd=showitem

You can use that to call a procedure every 15 minutes. In that procedure
loop through the Inbox' Items collection backwards; call each item's Forward
function, which returns a new MailItem object. Add the address to the item's
Recipients collection and then call its Send method. After that call its
Move function.

All mentioned functions are explained in the VBA help with code samples.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize Outlook email:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Tue, 19 Jun 2007 13:36:42 -0700 schrieb snowmangoh:

I need a macro to autoforward new mesages in my Inbox every 15 minutes to

a
specified address and then move them to a folder I will call "forwarded".

I
can't use a rule due to my exchange servers security protocols. PLEASE

HELP!
thanks!


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003 Auto Forward Rules do not forward Attachment Correctly Tom Ewald Outlook - General Queries 0 March 8th 07 06:04 PM
Outlook Macro to Forward Multiple Emails Jim Outlook and VBA 5 December 12th 06 09:50 PM
Outlook Macro To Forward Emails [email protected] Outlook - General Queries 3 September 23rd 06 10:08 PM
outlook forward macro Phil Best Outlook and VBA 6 July 18th 06 02:45 PM
macro to forward Dan Outlook and VBA 8 February 23rd 06 08:22 PM


All times are GMT +1. The time now is 08:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.