![]() |
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
|
|||
|
|||
![]()
I don't know if this is the right forum to ask this question - but i did nto
find any better forum in code project. I writing code in C++ and im using com to contol the microsoft outlook. I try to delete some mail or some appointment with some specific subject or with some specific body or data from outlook. But i did not find any good way to do it beside scan all the mail/appointment in the Outlook: ![]() / outbox / olFolderCalendar) and compare with the data that i looking for - and if they are equals then Delete the mail/appointment item. So i need some "smart" way to find the right item checking each item .. because scan all the appointment can be a lot of work. |
Ads |
#2
|
|||
|
|||
![]()
That's too broad a question: some subject or body or data.
For Subject or most other data properties in Outlook you can use the Find or Restrict methods on the Items collection of the folder. See the Outlook VBA Object Browser Help on Restrict to see what properties you can't use with Find or Restrict. For the item Body or HTMLBody you would need to load each item and parse the Body or HTMLBody property looking for whatever it is you're looking for. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Yanshof" wrote in message ... I don't know if this is the right forum to ask this question - but i did nto find any better forum in code project. I writing code in C++ and im using com to contol the microsoft outlook. I try to delete some mail or some appointment with some specific subject or with some specific body or data from outlook. But i did not find any good way to do it beside scan all the mail/appointment in the Outlook: ![]() inbox / outbox / olFolderCalendar) and compare with the data that i looking for - and if they are equals then Delete the mail/appointment item. So i need some "smart" way to find the right item checking each item .. because scan all the appointment can be a lot of work. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Delete outlook calendar appointment item permanently. | [email protected] | Outlook and VBA | 7 | September 7th 07 02:11 PM |
Delete outlook calendar appoinment item permanently. | [email protected] | Outlook and VBA | 1 | September 5th 07 07:03 PM |
Auto del Outlook delete item | snakesboy | Outlook - General Queries | 5 | April 16th 07 01:15 PM |
Any way to delete an item stuck in Outlook Drafts folder? | Joe3Eagles | Outlook - Using Contacts | 1 | October 9th 06 09:48 AM |
Outlook VSTO Appointment Item Delete Event | lg | Add-ins for Outlook | 0 | July 31st 06 10:35 AM |