get count of all emails with same conversation ID

Status
Not open for further replies.

Iqbal Khan

New Member
Outlook version
Outlook 2013 64 bit
Email Account
POP3
I am trying to move emails with same conversation id to a folder.

Right now I am using loop to search all the emails to look for conversation ID and move the email However the Inbox has more than 4000 emails in it hence it is taking time as I am trying to move the emails in Inbox in the Item_send event.

Is there a faster way to get the count of emails with similar conversation id so that I can break the once all the emails are found.

thank you.
 
Thank You, Diane

I used restrict to limit the results to the given conversation id and was able to do it as below.

Code:
Set sitems = Ns.GetDefaultFolder(olFolderInbox).Items.Restrict("[ConversationTopic]='" & UMail.ConversationTopic & "'")
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
P Is it possible to sort emails by COUNT of "From" field? Using Outlook 2
V Macro to count flagged messages? Using Outlook 2
T outlook 2010 mail item count doesnt match display Outlook VBA and Custom Forms 3
Diane Poremsky Change Item Count on All Folders in a Data File Using Outlook 0
C Unread email count not displaying on Inbox sub-folders Using Outlook 0
L A realtime Outlook user inbox count Using Outlook 5
M Nested distribution lists: how to count UNIQUE # of people... Outlook VBA and Custom Forms 13
M using Folders.Count in Excel Vba Outlook VBA and Custom Forms 8
R VBA to count email Subject names Using Outlook 1
E Strange Send/Receive count Using Outlook 3
B Day count in rules gets changed in Office for Mac 2011 Using Outlook 1
C Message Count not updating Using Outlook 2
A Comprehensive count of items in a PST Using Outlook 2
D Outlook 2010 - Advanced Find - No Status Bar = No Item Count Using Outlook 2
G recurring meeting exceptions count not updated Outlook VBA and Custom Forms 3
S Count of Contacts In Current View BCM (Business Contact Manager) 1
J Outlook 2007 items.count incorrect Outlook VBA and Custom Forms 2
H daily email count in Outlook Using Outlook 3
G Cannot receive emails from gmail account in Outlook 365 Using Outlook 1
J Saving Send emails to a folder on the server Outlook VBA and Custom Forms 63
D Amazon and some other emails not showing in Preview Pane Using Outlook 10
J Outlook 2019 Pick the Folder Location to save send emails Outlook VBA and Custom Forms 0
Retired Geek Outlook on MAC delete duplicate Sent emails Using Outlook 0
J Emails with .ICS calendar invitations attached don't contents when received in Outlook 365 Using Outlook 6
W Outlook 2021 Hanging on "Sending Emails" Using Outlook 3
M Outlook 365 VBA Auto-Forward Only the first of Duplicate Emails Outlook VBA and Custom Forms 2
J Action based on number of emails after sort by from Using Outlook 3
D Can't read some emails - text size too small. Using Outlook 2
R How to use VB .Net to send emails? Outlook VBA and Custom Forms 0
T Outlook is categorizing emails incorrectly Using Outlook 0
H Move Selected emails to Local Drive Outlook VBA and Custom Forms 0
D Delete Outlook emails from MS server Using Outlook 17
G Creating Macro to scrape emails from calendar invite body Outlook VBA and Custom Forms 6
A Flagged Emails highlighted in yellow Using Outlook 3
P Search folder: all emails sent to or from a domain Using Outlook 1
J Macro to Reply to Emails w/ Template Outlook VBA and Custom Forms 3
G Save emails as msg file from Outlook Web AddIn (Office JS) Outlook VBA and Custom Forms 0
T Outlook 2010 Sub accounts not showing new emails in Inbox Using Outlook 4
Nufc1980 Outlook "Please treat this as private label" auto added to some emails - Help. Using Outlook 4
humility36 Cannot move emails to archive - 440 error Outlook VBA and Custom Forms 1
E Edit incoming emails to remove a certain sentence added by the "system" Using Outlook 1
R Saving Emails and Attachments as .msg file Using Outlook 3
F Color code certain INBOX emails Using Outlook 2
J gmail and deleted emails. Using Outlook 0
Z Outlook 2021 Outlook new emails notification not working Using Outlook 4
J Outlook 365 Outlook Macro to Sort emails by column "Received" to view the latest email received Outlook VBA and Custom Forms 0
C Outlook 365 Copy/Save Emails in Folder Outside Outlook to Show Date Sender Recipient Subject in Header Using Outlook 0
U Outlook not responding when trying to print Emails Using Outlook 6
K mark emails with colour manually (like in thunderbird) Using Outlook 1
richardwing Outlook 365 VBA to access "Other Actions" menu for incoming emails in outlook Outlook VBA and Custom Forms 0

Similar threads

Back
Top