![]() |
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
|
|||
|
|||
![]()
Hi! I receive massages in multiple inbox whith different address. I need
check this massages simultaneously. This code correctly work whith inbox single address. What must I modify? Public WithEvents srchResults As Outlook.Results Public srch As Outlook.Search Dim sFromCondition As String Dim sCondition As String sFromCondition = "(NOT urn:schemas:httpmail:from like '%" + GetEntryAddress(anApplication.Session.CurrentUser. AddressEntry) + "%') AND " + "(urn:schemas:httpmail:subject LIKE '%" + AA_Actions_StrReceive + "%')" sCondition = sFromCondition Set srch = anApplication.AdvancedSearch("'//" + anApplication.Session.GetDefaultFolder(olFolderInb ox).Parent.Name + "'", _ sCondition, True) If Len(sLastStartCondition) 0 Then sCondition = sLastStartCondition + " AND " + sFromCondition Set srchResults = srch.Results |
#2
|
|||
|
|||
![]() I lose that multiple inbox make by outlook/service/account/master.... |
#3
|
|||
|
|||
![]()
Answered at http://www.outlookcode.com/threads.a...essageid=26940
-- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Andrey_R" wrote in message news ![]() Hi! I receive massages in multiple inbox whith different address. I need check this massages simultaneously. This code correctly work whith inbox single address. What must I modify? Public WithEvents srchResults As Outlook.Results Public srch As Outlook.Search Dim sFromCondition As String Dim sCondition As String sFromCondition = "(NOT urn:schemas:httpmail:from like '%" + GetEntryAddress(anApplication.Session.CurrentUser. AddressEntry) + "%') AND " + "(urn:schemas:httpmail:subject LIKE '%" + AA_Actions_StrReceive + "%')" sCondition = sFromCondition Set srch = anApplication.AdvancedSearch("'//" + anApplication.Session.GetDefaultFolder(olFolderInb ox).Parent.Name + "'", _ sCondition, True) If Len(sLastStartCondition) 0 Then sCondition = sLastStartCondition + " AND " + sFromCondition Set srchResults = srch.Results |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find Related Messages in Outlook 2003 with VSTO 2005 C# | PGS123 | Add-ins for Outlook | 2 | April 16th 08 01:06 AM |
Cannot show messages using Quick Find in Outlook 2003 | Kiavik | Outlook - General Queries | 0 | March 5th 08 09:05 AM |
outlook 2003 downloading multiple messages | Jef[_3_] | Outlook - General Queries | 1 | January 9th 08 06:08 PM |
Printing multiple messages with attachments in Outlook 2003 & 2007 | Mick | Outlook - Installation | 1 | December 3rd 07 04:20 AM |
how to receive my emails to my personal folder (ie lianne) in inbo | clueless | Outlook - General Queries | 2 | September 2nd 06 08:58 PM |