Excel Macro to DELETE specific emails from Outlook | VBA Tutorial

preview_player
Показать описание

I receive a lot of junk emails related to promotions, campaigns etc. Deleting those from a common sender, a unique subject is easy after sorting them.

However, if we want to delete the emails where subject containing specific text, sender from a particular domain or in fact the body contain some text; this is achievable through vba macro.

Let's see how to delete specific emails from Outlook.
Рекомендации по теме
Комментарии
Автор

This is exactly what i needed. Thank you

Hulahoopish
Автор

Does this sit on servier or each machine seperately? I think this can be useful for my shared inbox my team uses.

spyxxx
Автор

Can this work if modified to delete a calendar appointment with specific "Subject" ?

royvelesp
Автор

hi I am looking for a macro to scan a given directory in outlook, sort them with subject and keep the latest one and delete all older emails .. can you share a way to do it?

rizzwanmohammed
Автор

hello sir, really I was searching this. just I need to know whether it can delete mails even if Outlook is closed ? or is it mandatory to keep Outlook open to delete all mails

nisargkedar
Автор

is it possible to open and replay that email insted of delet it?

mohammedalghamdi
Автор

Nice one, can you please tell how to copy that entire mail &paste it in Excel, & instead of writing a specific subject, pick the subject from Excel & search

tajkingking
Автор

Thanks, sir. This what exactly I was searching.
Sir can u please guide me in changing the name of the email through VBA.
I have tried.SentOnBehalfOfName but it is not fulfilling my requirement as it requires the name to be in proper email format, whereas I want a plain name.
Thanks in advance

vittal
Автор

Code runs without any error but the outlook does not executes .. please help I have sent you email as well

shaffikhan
Автор

Brother, i need help.. to extract bounced mails from Outlook in to excel sheet. Please help...

chandakaashok
Автор

is it possible to delete all except the most recent one

ryanjefferis
Автор

Causion: Do not use for each ... next to delete VBA entries, VBA cannot handle updated collection on deletion of item, and not all items will get deleted. It's best to use a loop which down counts, as

balajiman
Автор

I really want to learn from you but the strong accent makes it so hard to understand

toughman