Can this be done through VBA-code

G

Guest

Hi,

Is it possible to retract let's say a mail through VBA. In addition to that
I have three options the usual ones; tasks, appointments and mail.

I add a record in an Access database and automate through Outlook. Works
like a charm (thanks Ken..). Now if I wanted to cancel the appointment which
I've added in my database i want to go to the sent items folder and find the
specific appointment (based on the recordset ID - I've added that to the
appointment). When I've found it I would like to cancel this appointment. How
can I do that via VBA. I guess the same applies for tasks and mail.

I know it's a lot to ask but a few pointers would be sufficient...

Thanks in advance
 
K

Ken Slovak - [MVP - Outlook]

If the item is a meeting you can set Appointment.MeetingStatus =
OlMeetingStatus.olMeetingCanceled.

For a task you can delete them but if a task has been assigned you can't
cancel it because it's now owned by someone else. All you could do is delete
the assignor copy.

Trying to recall an email almost never works, only will work if the email
has been sent within an Exchange organization and hasn't been read yet. I'd
forget about that one.
 
G

Guest

Ken,

Thanks again for the explanation, i'll play around with it. The pointers are
very clear. The mailoption wasn't really an option I would have considered..

cheers ;-)
Maurice
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top