A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook and VBA



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 22nd 06, 09:28 AM posted to microsoft.public.outlook.program_vba
Peter Haynes
external usenet poster
 
Posts: 2
Default Outlook and VBA

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).
Ads
  #2  
Old June 22nd 06, 12:22 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook and VBA

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.MyCustomFo rm")

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Peter Haynes" wrote in message ...
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).

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with VBA and Outlook ms Outlook and VBA 2 April 21st 06 07:23 PM
outlook and vba Greenjedi Outlook and VBA 3 April 20th 06 12:23 PM
Using VBA for Outlook and VBA for Access within Access Sardonic Outlook and VBA 1 March 17th 06 12:34 PM
Outlook VBA text functions Vaughan Outlook and VBA 5 February 14th 06 08:51 AM
Can I use VBA to activate a hyperlink in Outlook? [email protected] Outlook and VBA 2 January 18th 06 12:57 AM


All times are GMT +1. The time now is 05:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.