I am a newbie at vba and was wondering if only one could help me? I am trying to automate outlook to export appointments into a spreadsheet. I have look for several weeks for at least some starter code but have had no luck. Please help!
I am a newbie at vba and was wondering if only one could help me? I am trying to automate outlook to export appointments into a spreadsheet. I have look for several weeks for at least some starter code but have had no luck. Please help!
Welcome to the forum! The Outlook MVP websites would be the first that I would look into. http://www.mvps.org/links.html#Outlook
Here's a sample to get you started. You need to add a reference to Outlook 2010 if you haven't already done so.Please Login or Register to view this content.
Last edited by gjlindn; 09-04-2011 at 02:24 AM.
-Greg If this is helpful, pls click Star icon in lower left corner
Thanks for that! I've tried the outlook.application, but I think because it's outlook '03 it doesn't recognize it. It gives me a compile error: user-defined type not defined. Any thoughts or work arounds for this?
Keep it simple
Please Login or Register to view this content.
Last edited by snb; 09-05-2011 at 11:21 AM.
Hi mppotter
The code provided uses early binding (look it up). With the code you need to set a reference to the Microsoft Outlook Object Library as stated by gjlindn.
Alt F11 -> Tools -> References -> Microsoft Outlook Object Library (whatever version)
John
If you have issues with Code I've provided, I appreciate your feedback.
In the event Code provided resolves your issue, please mark your Thread as SOLVED.
If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks