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

Sent Appointment - not visible



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 8th 07, 03:36 PM posted to microsoft.public.outlook.program_vba
Maurice
external usenet poster
 
Posts: 48
Default Sent Appointment - not visible

Hi,

specs: Outlook 2003 - winXP

I'm developing an Acces database with some automation to Outlook. In Access
I create an appointment which I want to automate and sent via Outlook.

This is what I have so far:

Dim objApp As New Outlook.Application
Dim objAppointment As Outlook.AppointmentItem
Dim objSession As Object

Set objApp = CreateObject("Outlook.Application")
Set objAppointment = Outlook.CreateItem(olAppointmentItem)

With objAppointment
.Start = rst("StartDate") '- Extract from Access
.End = rst("EndDate")
.Recipients.Add (rst("Addressee"))
.Subject = rst("Subject")
.ReminderSet = IIf(rst("Reminder") = -1, True, False)
.Location = rst("Locatie")
.Send
End With

When I run this code the appointment seems to be made but I don't see it in
de calendar of the person I sent it to.

If I choose .Display I see the appointment and I can click Send. If I choose
Send I don't see the appointment
What piece of code am I missing here?

thanks in advance for any pointers...
--
Maurice Ausum
  #2  
Old October 8th 07, 04:11 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Sent Appointment - not visible

You will need to set item.MeetingStatus = olMeeting. You also should set the
properties of any recipients as required (olTo), or optional (olCC) or as
resources (olBCC). See the help in the Object Browser for
AppointmentItem.MeetingStatus.

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

specs: Outlook 2003 - winXP

I'm developing an Acces database with some automation to Outlook. In
Access
I create an appointment which I want to automate and sent via Outlook.

This is what I have so far:

Dim objApp As New Outlook.Application
Dim objAppointment As Outlook.AppointmentItem
Dim objSession As Object

Set objApp = CreateObject("Outlook.Application")
Set objAppointment = Outlook.CreateItem(olAppointmentItem)

With objAppointment
.Start = rst("StartDate") '- Extract from Access
.End = rst("EndDate")
.Recipients.Add (rst("Addressee"))
.Subject = rst("Subject")
.ReminderSet = IIf(rst("Reminder") = -1, True, False)
.Location = rst("Locatie")
.Send
End With

When I run this code the appointment seems to be made but I don't see it
in
de calendar of the person I sent it to.

If I choose .Display I see the appointment and I can click Send. If I
choose
Send I don't see the appointment
What piece of code am I missing here?

thanks in advance for any pointers...
--
Maurice Ausum


  #3  
Old October 8th 07, 04:53 PM posted to microsoft.public.outlook.program_vba
Maurice
external usenet poster
 
Posts: 48
Default Sent Appointment - not visible

Hi ken,

Thanks for replying. I'll set the options as you stated. Finally I know ;-)
--
Maurice Ausum


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

You will need to set item.MeetingStatus = olMeeting. You also should set the
properties of any recipients as required (olTo), or optional (olCC) or as
resources (olBCC). See the help in the Object Browser for
AppointmentItem.MeetingStatus.

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

specs: Outlook 2003 - winXP

I'm developing an Acces database with some automation to Outlook. In
Access
I create an appointment which I want to automate and sent via Outlook.

This is what I have so far:

Dim objApp As New Outlook.Application
Dim objAppointment As Outlook.AppointmentItem
Dim objSession As Object

Set objApp = CreateObject("Outlook.Application")
Set objAppointment = Outlook.CreateItem(olAppointmentItem)

With objAppointment
.Start = rst("StartDate") '- Extract from Access
.End = rst("EndDate")
.Recipients.Add (rst("Addressee"))
.Subject = rst("Subject")
.ReminderSet = IIf(rst("Reminder") = -1, True, False)
.Location = rst("Locatie")
.Send
End With

When I run this code the appointment seems to be made but I don't see it
in
de calendar of the person I sent it to.

If I choose .Display I see the appointment and I can click Send. If I
choose
Send I don't see the appointment
What piece of code am I missing here?

thanks in advance for any pointers...
--
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
Last row visible TomThumb Outlook and VBA 4 June 2nd 07 09:20 PM
Entries not visible in Outlook, are visible via OWA Sean C Outlook - Calandaring 2 July 25th 06 07:40 PM
Visible posts? Bruce Garlock Outlook Express 2 June 26th 06 03:36 AM
Tab not visible on custom form Matt Outlook - Using Forms 2 May 25th 06 12:19 AM
Form not visible in sent message KFitz Outlook - Using Forms 4 April 25th 06 10:57 AM


All times are GMT +1. The time now is 05:54 AM.


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.