add an appointment in a specific calendar in Outlook

  • Thread starter Thread starter Michel Lévy
  • Start date Start date
M

Michel Lévy

From a program in Visual FoxPro (using automation), I am trying to add an
appointment in a
specific calendar in Outlook 2003.

I can add an appointment to the "standard" calendar, I can add a new
clendar, I can remove it if necessary, but how can I add an appointment in
that new calendar?

looutlook=CREATEOBJECT("outlook.application")
lonamespace=looutlook.GetNamespace("MAPI")

and then ?
loitem=looutlook.CreateItem(1) gives me an appointment in default calendar,
when I do loitem.save

Thanks

--
http://www.atoutfox.org

AtoutFoxement,
Michel Lévy
Communauté Francophone des Professionnels FoxPro
 
If you can add a new calendar folder use the object for that folder (a
MAPIFolder object) and it's Add method.
 
Back
Top