Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / April 2006

Tip: Looking for answers? Try searching our database.

Find sent email

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bela Gocz - 26 Apr 2006 15:43 GMT
Hi everybody!!

My problem started when i tryed to find a sent email in VB with Outlook
2002. After it send the email, the EntryId of mail item is changed. So i
added an ItemProperty to my message to find it in Sent Items folder. But
I really don't know how to search a message after his ItemProperty

objEmail.ItemProperties.Add "myitem", olText
objEmail.ItemProperties.Item("myitem").Value = "uniqueID"

Set objSearch = Application.AdvancedSearch("'Sent Items'", "...")

Any idea how the DASL search string shoul look like?

Thank you a lot
Michael Bauer - 26 Apr 2006 16:56 GMT
Am Wed, 26 Apr 2006 07:43:08 -0700 schrieb Bela Gocz:

You could simply use the ItemAdd event of that folder.

Signature

Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
 -- www.vbOffice.net --

> Hi everybody!!
>
[quoted text clipped - 13 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
Bela Gocz - 26 Apr 2006 20:42 GMT
And how that solve my problem?
Michael Bauer - 27 Apr 2006 05:29 GMT
Am Wed, 26 Apr 2006 12:42:41 -0700 schrieb Bela Gocz:

Either you can handle each sent mail or you stick on adding an userdefined
field and check in the event if the item has that field. So you don´t need
to search each time a mail is sent through all the (hundreds?) of sent
mails.

Signature

Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
 -- www.vbOffice.net --

> And how that solve my problem?
>
> *** Sent via Developersdex http://www.developersdex.com ***
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.