Outlook and VBA

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).
 
S

Sue Mosher [MVP-Outlook]

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
 

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