J
jesslyn
Hi,
I have created a program that adds appointment to calendar in outlook.
But i need it to add to the calendar in the public folder instead of
the default personal folder. I tried changing the following codes but
it doesnt seem to be able to locate my public calendar.
Orginal: (adds to personal calendar folder)
Set ns = Outlook.Application.GetNamespace("MAPI")
Set fld = ns.GetDefaultFolder(olFolderCalendar)
Set itms = fld.Items
Set myform = itms.Add("IPM.Appointment.GroupAppt")
Change:
Set ns = Outlook.Application.GetNamespace("MAPI")
Set fld = ns.Folders("calendar_public")
Set fld = fld.Folders("testCalendar1")
Set itms = fld.Items
Set myform = itms.Add("IPM.Appointment.GroupAppt")
Do assist me.... thank you
regards
jesslyn
I have created a program that adds appointment to calendar in outlook.
But i need it to add to the calendar in the public folder instead of
the default personal folder. I tried changing the following codes but
it doesnt seem to be able to locate my public calendar.
Orginal: (adds to personal calendar folder)
Set ns = Outlook.Application.GetNamespace("MAPI")
Set fld = ns.GetDefaultFolder(olFolderCalendar)
Set itms = fld.Items
Set myform = itms.Add("IPM.Appointment.GroupAppt")
Change:
Set ns = Outlook.Application.GetNamespace("MAPI")
Set fld = ns.Folders("calendar_public")
Set fld = fld.Folders("testCalendar1")
Set itms = fld.Items
Set myform = itms.Add("IPM.Appointment.GroupAppt")
Do assist me.... thank you
regards
jesslyn