![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I'm trying somehow to imitate Gmail feature, which moves archived items back
into the Inbox when a new email with the same subject line arrives. I have implemented following which will be called each time an email arrives and moves all emails with same Conversation topic back to the Inbox. It seems to work, but takes very long with only 1400 items in my Archive folder. Any idea how I can speed this up? Thanks Kemal Sub Test() MoveEmails ("Considered test defects") End Sub Sub MoveEmails(myConvTopic As String) Dim persFolders, myArchiveFolder, myDestFolder As Outlook.MAPIFolder Dim i As Integer Dim myItem As Outlook.MailItem Set myDestFolder = Application.Session.GetDefaultFolder(olFolderInbox ) Set persFolders = Application.Session.Folders.Item(3) Set myArchiveFolder = persFolders.Folders.Item(7) mailCount = myArchiveFolder.Items.Count For i = mailCount To 1 Step -1 If myArchiveFolder.Items(i).Class = olMail Then Set myItem = myArchiveFolder.Items(i) If myItem.ConversationTopic = myConvTopic Then myItem.Move myDestFolder End If End If Next End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Speed Dialing - Outlook 2002 | Bernard | Outlook - Using Contacts | 0 | May 23rd 06 04:55 PM |
Outlook 2002 Speed Dialing | Bernard | Outlook - Using Contacts | 0 | May 15th 06 09:51 AM |
Moving Specific Inbox Items to a Specific Subfolder (VBA) | DevDaniel | Outlook and VBA | 1 | April 11th 06 05:46 AM |
Moving items to folders does not work | SSI | Outlook - General Queries | 0 | February 8th 06 04:11 AM |
Moving a Mix of Mail Items and Report Items | Steve Roberts | Outlook and VBA | 1 | January 24th 06 10:36 PM |