add an appointment in a specific calendar in Outlook

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
 
K

Ken Slovak - [MVP - Outlook]

If you can add a new calendar folder use the object for that folder (a
MAPIFolder object) and it's Add method.
 

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