Create new Outlook Appointment with vbscript

G

Gigi

I all,
I'll try to create new Outlook Appointment using vbscript (Outlook is
running)

Const olAppointmentItem = 1
Set objOutlook = CreateObject("Outlook.Application")
Set objNamespace = objOutlook.GetNamespace("MAPI")
Set objAppointment = objOutlook.CreateItem(olAppointmentItem)

but when I execute "objOutlook.CreateItem(olAppointmentItem)" script
fail with a error. Must I configure some option inside Outlook
(objOutlook is an object)?

THX
 

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