Moving unread Email and managing Inbox

Say, Outlook 2013, how to move all Read Emails from the Inbox to 1 of the PST folders. I currently filter the Email to Read: Yes and then have to drag and drop the Read Email into 1 of the PST folders that are offline. I'm trying to automate this process.
My reasoning: I'm using IMAP and the way I manage my Email is to  move out all Read Emails from my Inbox. This way, I only need to focus on the Unread Email. I'm looking for a way to automate this process.
Perhaps you could suggest other ways of managing the Inbox to reduce clutter.
Thank you
shaunwinginAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KimputerCommented:
Here's some code to get you going in the right direction:

Sub move_read_messages

Dim myNameSpace As Outlook.NameSpace 
 Dim myInbox As Outlook.Folder 
 Dim myDestFolder As Outlook.Folder 
 Dim myItems As Outlook.Items 
 Dim myItem As Object 
 
 Set myNameSpace = Application.GetNamespace("MAPI") 
 Set myInbox = myNameSpace.GetDefaultFolder(olFolderInbox) 
 Set myItems = myInbox.Items 
 Set myDestFolder = myNameSpace.Folders("Foldername as displayed in Outlook top folder").Folders("Subfolder")
 
 For Each oMail In myItems
	If Not oMail.UnRead Then
		oMail.Move myDestFolder
	End if
 Next

End sub

Open in new window


Check the syntax for the destination folder. Also, if the source folder is not the main inbox, change the syntax to the one used in the destination folder.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Scott CSenior EngineerCommented:
Set up rules for forward emails to different folders based on specific criteria.

https://support.office.com/en-za/article/Manage-email-messages-by-using-rules-c24f5dea-9465-4df4-ad17-a50704d66c59
shaunwinginAuthor Commented:
ID: 40924335
How do I implement the code in Outlook please?
KimputerCommented:
In Outlook, press ALT-F11, paste the code. Close the window. Press ALT-F8 to run the code (you can recognize the function name).
Save the project when Outlook asks for it. You might need to enable all macros in the security options before the code can run.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Outlook

From novice to tech pro — start learning today.