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.
 

Iqbal Khan

New Member
Outlook version
Outlook 2013 64 bit
Email Account
POP3
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
J Outlook 365 Emails showing as links and text only Using Outlook 4
G Removing old emails when adding accounts Using Outlook 3
N VBA Macro To Save Emails Outlook VBA and Custom Forms 1
Horsepower Lost emails Using Outlook 4
P Emails assigned with a certain category (within a shared inbox) to be copied to a specific folder. Outlook VBA and Custom Forms 2
M Saving emails using Visual Basic - Selecting folder with msoFileDialogFolderPicker Outlook VBA and Custom Forms 6
L Emails being archived when I press the A key accidentally - how do I stop this? Using Outlook 0
N Save emails within a certain date range to network drive Outlook VBA and Custom Forms 0
M I cant send emails via Outlook in my W10 PC. Using Outlook 3
e_a_g_l_e_p_i Can emails from Gmail be deleted when they are downloaded to Outlook 2010 Using Outlook 1
D Wrong email address in Outlook 2003 "From" tab in new outgoing emails Using Outlook 4
witzker How to find all emails from and to a contact in OL 2019 Using Outlook 6
S How to find emails that I sent that have not received a reply? Using Outlook 7
M Extract "Date sent" from emails (saved to folder using drag and drop) Outlook VBA and Custom Forms 1
R Sent emails show iCloud mail account not the alias Using Outlook 2
K Run a script rule to auto 'send again' on undeliverable emails? Outlook VBA and Custom Forms 1
J how to stop junk emails from *.onmicrosoft.com ? Using Outlook 2
FryW Need help modifying a VBA script for in coming emails to auto set custom reminder time Outlook VBA and Custom Forms 0
S Auto forward for multiple emails Outlook VBA and Custom Forms 0
M All fonts in Outlook emails display with exaggerated character spacing Using Outlook 3
L Images not displaying in emails sent to self Using Outlook 2
C Icons (arrows) not showing on emails forwarded or replied to Using Outlook 8
R Moved 6 months worth (approx 1500 emails) lost from moving from TPG inbox to Icloud inbox (folders) Using Outlook 3
U Approving Emails from iPhone Using Outlook 0
D cannot view emails in View pane (in the right pane), I only see one line or nothing Using Outlook 21
A Macro to file emails into subfolder based on subject line Outlook VBA and Custom Forms 1
N Help creating a VBA macro with conditional formatting to change the font color of all external emails to red Outlook VBA and Custom Forms 5
B Outlook 2016 Unable to view images or logos on the outlook 2016 emails the same html code works well when i use outlook 2010 Using Outlook 0
A Record opened emails for reopening later Using Outlook 2
Y Filter unread emails in a search folder vba help Outlook VBA and Custom Forms 0
S Outlook 2016 Change how Outlook shows me contacts in emails Using Outlook 0
T Outlook creating unwanted tasks in Tasks and Todo from emails Using Outlook 1

Similar threads

Top