Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Importing directly into Calendar????

Posted on 2001-06-21
2
Medium Priority
?
208 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 400 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
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 …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

718 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