lneidorf
04-19-2019, 09:59 AM
Hi there.
I've got what seems like a relatively simple task, but cannot figure it out.
I'm running Outlook 2010.
I need to create a VBA macro to delete emails where:
1. Subject contains specific text ("Bloomberg Message" OR "Bloomberg_Message")
2. Message size is larger than 2MB [may use another value here]
I've tried cobbling together various code examples I've found on this forum and else where to no effect. These include:
http://www.vbaexpress.com/forum/showthread.php?47974-Deleting-an-email-using-VBA-in-outlook-when-the-subject-name-contains-certain-words
https://stackoverflow.com/questions/19470564/deleting-an-email-when-subject-contains-certain-words
As a plus, how would I move the messages, in addition to deleting them?
Any help would be most appreciated.
Thanks.
I've got what seems like a relatively simple task, but cannot figure it out.
I'm running Outlook 2010.
I need to create a VBA macro to delete emails where:
1. Subject contains specific text ("Bloomberg Message" OR "Bloomberg_Message")
2. Message size is larger than 2MB [may use another value here]
I've tried cobbling together various code examples I've found on this forum and else where to no effect. These include:
http://www.vbaexpress.com/forum/showthread.php?47974-Deleting-an-email-using-VBA-in-outlook-when-the-subject-name-contains-certain-words
https://stackoverflow.com/questions/19470564/deleting-an-email-when-subject-contains-certain-words
As a plus, how would I move the messages, in addition to deleting them?
Any help would be most appreciated.
Thanks.