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

Can this be done through VBA-code



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 15th 07, 06:41 PM posted to microsoft.public.outlook.program_vba
Maurice
external usenet poster
 
Posts: 48
Default Can this be done through VBA-code

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
--
Maurice Ausum
  #2  
Old October 15th 07, 08:28 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Can this be done through VBA-code

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.

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


"Maurice" wrote in message
...
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
--
Maurice Ausum


  #3  
Old October 15th 07, 09:55 PM posted to microsoft.public.outlook.program_vba
Maurice
external usenet poster
 
Posts: 48
Default Can this be done through VBA-code

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
--
Maurice Ausum


"Ken Slovak - [MVP - Outlook]" wrote:

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.

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


"Maurice" wrote in message
...
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
--
Maurice Ausum



 




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
if code Joel Allen Outlook and VBA 1 May 31st 07 05:43 AM
key code help Clive Outlook - Installation 2 October 5th 06 10:14 AM
add 1+XXX area code to phone nr in my area code OH Outlook - Using Contacts 3 August 3rd 06 03:45 PM
Code Joel Allen Outlook - Using Forms 0 February 1st 06 06:32 PM
code : Code : 800cccd2 scotty971fr Outlook Express 1 January 19th 06 11:59 PM


All times are GMT +1. The time now is 12:29 PM.


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