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 sent email



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 26th 06, 03:43 PM posted to microsoft.public.outlook.program_vba
Bela Gocz
external usenet poster
 
Posts: 2
Default Find sent email


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

*** Sent via Developersdex http://www.developersdex.com ***
  #2  
Old April 26th 06, 04:56 PM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Find sent email

Am Wed, 26 Apr 2006 07:43:08 -0700 schrieb Bela Gocz:

You could simply use the ItemAdd event of that folder.

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


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

*** Sent via Developersdex http://www.developersdex.com ***

  #3  
Old April 26th 06, 08:42 PM posted to microsoft.public.outlook.program_vba
Bela Gocz
external usenet poster
 
Posts: 2
Default Find sent email

And how that solve my problem?



*** Sent via Developersdex http://www.developersdex.com ***
  #4  
Old April 27th 06, 05:29 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Find sent email

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.

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


And how that solve my problem?



*** Sent via Developersdex http://www.developersdex.com ***

 




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
Pls help: need to find email.... [email protected] Outlook Express 5 February 21st 06 03:36 PM
what do you do if outlook is unable to find email server me Outlook - Calandaring 1 February 14th 06 05:53 PM
Outlook cant find Word when trying to edit email. John Outlook - Installation 0 February 6th 06 05:22 AM
Help Please! Messages with no To or From and so much info in email can't find message Sherry C Outlook - General Queries 0 February 2nd 06 05:56 PM
How do I find the number of email addresses in a distribution list Shockle Outlook - Using Contacts 1 January 30th 06 11:13 PM


All times are GMT +1. The time now is 11:33 AM.


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