This VBA demo illustrates how to pick up the latest received mail items among emails which have the same subject, move it to a specific folder.
This is helpful when you’ve subscribed lots of notifications which might update frequently, but you only need to check the latest one. Also it is a frequently asked question by users in the TechNet forum. For example,
- HOW TO FLAG THE LATEST E-MAIL ON A THREAD?
- Delete all but the most recent version of an email
- Keep the latest email and remove the rest (remove duplicates)
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery