'Bulk Move All Mails From An Outlook Folder To Another Folder

Can I move all the mails (that category is blank) from an Outlook folder to another Outlook folder at once like copy and paste not through loop, move bulk mails at once?

Like if we do manually, apply filter, select those mails and drag to another folder.



Solution 1:[1]

The Outlook object model doesn't provide any method for moving items in bulk. The best what you could do is to apply a search criteria to find only items that should be moved and call the Move method to each of them programmatically in the loop. Read more about possible ways of filtering items in Outlook programmatically (searching):

Solution 2:[2]

As Eugene mentioned, there is no way to do that in Outlook Object Model. If using Redemption is an option (I am its author), you can call RDOFolder.Items.MoveMultiple and pass an array of entry ids as a parameter. The array of entry ids can be constructed by calling RDOFolder.Items.MAPITable.ExecSQL with the appropriate restriction (ExecSQL will return an instance of the ADODB.Recordset object).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Eugene Astafiev
Solution 2