![]() |
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
|
|||
|
|||
![]()
Please somebody help me to find last UnRead mail with text like "Test*" in
Subject and select it. I Found last UnRead mail by Set objMail = Application.GetNamespace("MAPI").GetDefaultFolder( olFolderInbox).Items.Find("([UnRead] = True)") but could not do anything else. As I see "Like" operator there is not functioning. And after finding this massage, how to select it in ActiveExplorer. |
#2
|
|||
|
|||
![]()
Am Thu, 28 Sep 2006 15:42:01 -0700 schrieb Gvaram:
You´re right, the LIKE operator doesn´t work in that case. Instead you need to iterate through all the items and check for the subject. Before that you could sort the collection by Items.Sort for the received date and restrict it for unread items. But there´s no way to select the result. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.VBOffice.net -- Please somebody help me to find last UnRead mail with text like "Test*" in Subject and select it. I Found last UnRead mail by Set objMail = Application.GetNamespace("MAPI").GetDefaultFolder( olFolderInbox).Items.Find("([UnRead] = True)") but could not do anything else. As I see "Like" operator there is not functioning. And after finding this massage, how to select it in ActiveExplorer. |
#3
|
|||
|
|||
![]()
Your answer forced me to find another way to solve problem - and I found it.
I'm getting EntryID of MeilItem, so I can do many things with this mail massage ... ![]() Thank you Michael "Michael Bauer [MVP - Outlook]" wrote: Am Thu, 28 Sep 2006 15:42:01 -0700 schrieb Gvaram: You´re right, the LIKE operator doesn´t work in that case. Instead you need to iterate through all the items and check for the subject. Before that you could sort the collection by Items.Sort for the received date and restrict it for unread items. But there´s no way to select the result. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.VBOffice.net -- Please somebody help me to find last UnRead mail with text like "Test*" in Subject and select it. I Found last UnRead mail by Set objMail = Application.GetNamespace("MAPI").GetDefaultFolder( olFolderInbox).Items.Find("([UnRead] = True)") but could not do anything else. As I see "Like" operator there is not functioning. And after finding this massage, how to select it in ActiveExplorer. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cancelling Outlook.Application.ActiveExplorer.Close event? | Nathan | Add-ins for Outlook | 1 | September 8th 06 07:14 PM |
Sort/Find by "Display Name" on Select Names screen in Address Bk | Bob Schorr | Outlook - Using Contacts | 0 | June 28th 06 10:31 PM |
Browse and select mail messages? | Fox via OfficeKB.com | Outlook and VBA | 1 | June 22nd 06 05:50 AM |
I cant e-mail using this e-mail says cant find server | [email protected] | Outlook - General Queries | 3 | June 13th 06 10:20 PM |
Can't select "show this folder as an e-mail address book" | Michael Blaut | Outlook - Using Contacts | 5 | February 12th 06 03:22 PM |