Outlook and VBA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am currently able to use VBA to create new appointments in Outlook 2003
without a problem, but what I would also like to do is to create appointments
on our public folder calendar (which is shared throughout the office using
Exchange Server).
 
To create a new item in a non-default folder programmatically, use the Add method on the target folder's Items collection:

Set newItem = targetFolder.Items.Add("IPM.Appointment.MyCustomForm")

The message class parameter is optional.

You can use the code at http://www.outlookcode.com/d/code/getfolder.htm to walk the folder hierarchy and return the MAPIFolder corresponding to a given path string.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top