A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Find messages in multiple inbo for Outlook 2003



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 10th 08, 09:34 AM posted to microsoft.public.outlook.program_vba
Andrey_R
external usenet poster
 
Posts: 13
Default Find messages in multiple inbo for Outlook 2003

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  
Old June 10th 08, 01:40 PM posted to microsoft.public.outlook.program_vba
Andrey_R
external usenet poster
 
Posts: 13
Default Find messages in multiple inbo for Outlook 2003


I lose that multiple inbox make by outlook/service/account/master....
  #3  
Old June 10th 08, 03:02 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Find messages in multiple inbo for Outlook 2003

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 06:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.