0% found this document useful (0 votes)
308 views8 pages

How To Auto Forward Mails To Folder

This article describes how to Auto Forward mails which will help in managing outlook mails when you are Out of Office.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
308 views8 pages

How To Auto Forward Mails To Folder

This article describes how to Auto Forward mails which will help in managing outlook mails when you are Out of Office.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Aash…

read. think. act.

Skip to content

 Home

 About

 Nai Aash

Search for:

How to move Auto


Forwarded mails to a folder
in Outlook 2013
July 26, 2013Microsoft Office, Outlook, Tips n Tricks, windowsauto forward, outlook,outlook
2013, rules, run script, tips and tricks, windows
Another big problem not address normally (which should have been) by MicroSoft.

If you want to create rule for mails that are auto forwarded from someone to you,
you cannot my simple means. It would have been great if MS has provided a straight
forward option in rules setup to identify those mails which are auto forwarded,
provided the document has a property called “Auto Forwarded”. (This you can verify
by adding column of “Auto forwarded” by going to View Setting -> Columns and then
selecting Auto forwarded — This will add a column with title “Auto Forwarded” and
will show a tick mark for mails which are auto forwarded).

So, what now?

After digging for two days, I found a solution — By creating a script and assigning it
to the rule.

Press Alt + F11 to open up the Visual basic editor, double click on
ThisOutlookSession object, and create a procedure with following signature:

1 Public Sub YourProcName (Item As Outlook.MailItem)


2
3 'code
4
5 End Sub

vba

Now put following code in your procedure:

1 Public Sub MyAutoForwardRule(Item As Outlook.MailItem)


2
3 Dim myNameSpace As Outlook.NameSpace
Dim myInbox As Outlook.MAPIFolder
4 Dim myDestFolder As Outlook.MAPIFolder
5
6 Set myNameSpace = Application.GetNamespace("MAPI")
7 Set myInbox = myNameSpace.GetDefaultFolder(olFolderInbox)
8
9 ' Assumes destination folder is directly under the Inbox
10 Set myDestFolder = myInbox.Folders("AF_Mails")
11
12 If Item.AutoForwarded Then
'move message
13 Item.Move myDestFolder
14 End If
15
16 Set myDestFolder = Nothing
17 Set myInbox = Nothing
Set myNameSpace = Nothing
18
19 End Sub
20
21
22
So, the programming part is over.

1. Now create a new rule.


2. Select “Apply rule on messages I receive” and click next
3. Select “From people or public group”, and select the person who auto forwards you
mails, click next
4. Select “Run a script”. A box will appear with all public procedures in you VBA. Select
procedure that you just created above.

Select Script

5. Save your rule

and, Enjoy!!

About these ads

Share this:
 StumbleUpon

 Digg

Related

How to resolve "Cannot run "" script" Error in Outlook RuleIn "Microsoft Office"

RESOLVED: Send To -> Mail Recipient opens an Outlook plain text message (Outlook 2007)In
"Microsoft Office"

"The operation failed. An object could not be found" error message when you send New Mail in
OutlookIn "Microsoft Office"

Post navigation
← HERE’S THE CLASSIC STATEMENT OF FORMER PUNJAB POLICE CHIEF
KPS GILL. READ AND SHARE.How to resolve “Cannot run “” script” Error in
Outlook Rule →
Leave a Reply

RSS!

Subscribe in a reader

Subscribe to ashish tilak's blog by Email


Search for:
Recent Posts

 How to install Turbo C in Windows 7


 How to resolve “Cannot run “” script” Error in Outlook Rule
 How to move Auto Forwarded mails to a folder in Outlook 2013
 HERE’S THE CLASSIC STATEMENT OF FORMER PUNJAB POLICE CHIEF KPS
GILL. READ AND SHARE.
 How to enable Instant Search in Outlook 2007

Top Posts

 How to move Auto Forwarded mails to a folder in Outlook 2013


 "The operation failed. An object could not be found" error message when you send
New Mail in Outlook
 RESOLVED: Send To -> Mail Recipient opens an Outlook plain text message
(Outlook 2007)
 How to resolve "Cannot run "" script" Error in Outlook Rule
 Commitment value getting duplicated in PR and PO in CJI5 (and other similar)
report

Recent Comments
Archives

July 2013

M T W T F S S

« Jun Jan »

1 2 3 4 5 6 7

8 9 10 11 12 13 14

15 16 17 18 19 20 21

22 23 24 25 26 27 28

29 30 31

my.del.icio.us

 Amazing Secret turning Gray Hair naturally into Black hair and Much More
 CS50x Courseware
 CS50x Course Info
 Freelancer.com
 How to Motivate Yourself to Work Out (with Sample Exercise Games)
 CODING FOR GOOD
 Your Profile | SCN
 SAP Library - India
 Paper.li – Be a publisher
 વવવવવવવવવવ

my tweets

 Ever wondered Y so many NPA with almost all banks? Coz they can't recover coz of
political pressure. Take Malya for example.2 days ago
 RT @amishra77: This is seriously an outstanding piece by @TheJaggi on Kejriwal
and gas pricing: firstbiz.com/corporate/mr-k… || It must be circul…2 days ago
 RT @arunjaitley: .@Golumk Join the party, work your way up, excel. You may
become a Vajpayee or a Modi irrespective of the family you were … 2 days ago
 RT @SudarshanEMA: Chidambaram and gang will leave the next government with
a huge PSU Bank NPA headache and potential collapse http://t.co/…2 days ago
 Optimist:Glass is half full Pessimist:Glass is half empty NaMo: Glass is half full with
water and half with air. (he actually said that) 2 days ago

Blogroll

 Rahul’s twikis…
 Blog at WordPress.com.
 Blog at WordPress.com.

Meta

 Register
 Log in
 Entries RSS
 Comments RSS
 Blog at WordPress.com.

Blog Stats

 4,400 hits
Flickr Photos

More Photos

abap abhijit mukharjee anisur anisur rahman auto forward book budgetbuffer camp 14 camp14 Child Care child
control children CJI5 commitment cpmcriticism delhidelhigangrape delhi policeescape family film google
reader hit backhow to IDE India logic mamtamanmohan singh medical modi mouse wheel mousewheel ms
outlook namonorthkorea north korea outlookoutlook 2013 parameter parentingparents PM PO PR pranav
mukharjeepresident PS rape rules run scriptSAP selection screen singaporesocial
media story theekhai tipstips and tricks travel tricks tweettweeter twitter vb6 vb 6 visual basic win
7win7 windowswindows 7 winsxs women

The Twenty Thirteen Theme Blog at WordPress.com.


Follow

Follow “Aash...”
Get every new post delivered to your Inbox.

Sign me up

Powered by WordPress.com

You might also like