+ Reply to Thread
Results 1 to 6 of 6

Automating Outlook with Excel

  1. #1
    Registered User
    Join Date
    09-04-2011
    Location
    Washington State
    MS-Off Ver
    Excel 2003
    Posts
    3

    Automating Outlook with Excel

    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!

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Automating Outlook with Excel

    Welcome to the forum! The Outlook MVP websites would be the first that I would look into. http://www.mvps.org/links.html#Outlook

  3. #3
    Valued Forum Contributor gjlindn's Avatar
    Join Date
    08-01-2011
    Location
    Dodgeville, WI
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    369

    Re: Automating Outlook with Excel

    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

  4. #4
    Registered User
    Join Date
    09-04-2011
    Location
    Washington State
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Automating Outlook with Excel

    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?

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Automating Outlook with Excel

    Keep it simple
    Please Login or Register  to view this content.
    Last edited by snb; 09-05-2011 at 11:21 AM.



  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Automating Outlook with Excel

    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1