Solved

Importing directly into Calendar????

Posted on 2001-06-21
2
206 Views
Last Modified: 2010-04-08
Is it possible to import data from Access database directly into an Outlook 2000 Calendar using VBA???  I can import into a newly created Calendar, but do not appear to be able to import into the Default Calendar.  If it is possible how do I reference it?  Here is the code I use to create a new Calendar:

strFolder = "Calendar from Access"
Set fld = nms.Folders("Mailbox - User1").Folders.add(strFolder, olFolderCalendar)

Can anyone help me modify this so that it imports into the standard Calendar?
0
Comment
Question by:mercia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
rjcpjc earned 100 total points
ID: 6215159
mercia (I hope you don't think I forgot about you).  Its been busy at my office.  

Anyway, here is the code to reference the default calendar and I'm going back to your other question about the find folder sub in just a minute.  

Set fld = nms.GetDefaultFolder(olFolderCalendar)


This is assuming that you have a valid namespace object (nms).  If this doesn't work for you let me know.  The other way to do it is to use the nms.GetSharedDefaultFolder method if you want to get another user's calendar (other than the profile you are using to log into Outlook on the machine the VBA code is running on).  

Now back to your other question with apologies that it took so long.  

--Patricia
0
 

Author Comment

by:mercia
ID: 6217947
Thanks I nearly had it I was trying DefaultFolder(olCalendar) hence why it did not work.  Now I can move on to my next problem!  Cheers

Wayne
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
Changing a few Outlook Options can help keep you organized!
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question