Go Back   Access World Forums > Microsoft Access Discussion > Modules & VBA

 
Reply
 
Thread Tools Rate Thread Display Modes
Old 05-10-2004, 12:32 AM   #1
Slayboy
Registered User
 
Join Date: Apr 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Slayboy is on a distinguished road
Outlook Personal Folders

I am trying to setup an outlook folder in Access VBA so that my database can save appointments to a calendar in Outlook, the problem is that I don't want to save them to my calendar but to a joint one with others which I have set up in a personal folder (.pst file) and everyone links to it on their outlook. So I need to set this folder up in my VBA code. I found some code that lets you add subfolders (I think) rather than the set folders in the mailbox, the code is:

Set myFolder = NameSpace.GetDefaultFolder(olPublicFoldersAllPubli cFolders)
Set myFolder = myFolder.Folders("Marketing Reminders")
Set objAppt = myFolder.Items.Add

But this is still not personal folders, does anyone know how to link them?
The personal folder is called LeaveCal and the calendar inside is called LeaveCalendar, if anyone can show me how to write the code.

Slayboy is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump




All times are GMT -8. The time now is 04:14 PM.


Microsoft Access Help
General
Tables
Queries
Forms
Reports
Macros
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Featured Forum post


Sponsored Links


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World