Delete outlook messages from a folder - How to - TechRepublic
General discussion
June 19, 2008 at 08:15 PM
luis roman

Delete outlook messages from a folder – How to

by luis roman . Updated 16 years, 10 months ago

I’m using the following code but it does not delete all the message in a particular folder.
Does anyone know how to correct this code?

For Each MailItem In MyFolder.Items
Debug.Print MailItem.Delete
Next MailItem

Your guidance will be helpfull

Luis

This discussion is locked

All Comments