• Status: Solved
  • Priority: Medium
  • Security: Private
  • Views: 75
  • Last Modified:

How to move email to Deleted Items after checking text of email body

Hello, I would like to create a VBA in Outlook 2013 to move an email after reading the body of the email message with the following text:
_stopRequested= False
Files that don't exist: 0

Open in new window

Any thoughts ? Or better way to do this ?

Thanks for your help
1 Solution
Rob HensonFinance AnalystCommented:
Don't need VBA, just use a Rule.
Sudeep SharmaTechnical DesignerCommented:
I agree with Rob, why would you need the VBA script to do the task which is very easily be achievable with a simple rule.

namergSystems AdministratorAuthor Commented:
Hmmm,  will check on that
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Rob HensonFinance AnalystCommented:
Just been trying in Outlook and the rule specification will only allow one line of text.

Would one of those two lines always be there and only in those emails where it would apply for both lines?

namergSystems AdministratorAuthor Commented:
Hello Rob, both lines will always be there. Thanks.
Bill PrewCommented:
So I think where Rob was going (apologies if I'm misstating) was that if both of those lines would always be there, could you trigger off just one of them in a rule?

Or is it only when they are both there, meaning that other messages could come in with one of the two lines, but not the other, and you would not want the rule to fire then.

Rob HensonFinance AnalystCommented:
Thanks Bill, that is exactly what I was asking.
namergSystems AdministratorAuthor Commented:
The rule did the job. Thank youuu
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now