Creating an appointment via VBA in a shared calendar

G

Guest

Hi,

I am trying to create, from Access, an appointment in a shared calendar
using visual basic. To create this in my personal calendar, I am using

Dim objOutlook As Object ' outlook object
Dim objOutlookMsg As Object ' outlook mail message

Set objOutlook = CreateObject("Outlook.Application")
Set objOutlookMsg = objOutlook.CreateItem(olAppointmentItem)

objOutlookMsg.Subject = "Test subject"
objOutlookMsg.Body = "Test body"
objOutlookMsg.Location = "London"
objOutlookMsg.Start = "11/30/2004 9:00:00 AM"
objOutlookMsg.End = "11/30/2004 1:00:00 PM"
objOutlookMsg.Save

How do I obtain the location of the shared calendar and specify it?

Thanks in advance


Simon
 

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