+ Reply to Thread
Results 1 to 3 of 3

Add new code to exporting email data from Outlook to Excel

  1. #1
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Add new code to exporting email data from Outlook to Excel

    Hi all,

    I was wondering if someone could help me out with this. I've got the following code that I want to add some more aspects to it. Basically I want to be add the ability to export only emails under a certain criteria from the subject line rather than every email in the inbox. I also want the ability to move the email found under the criteria to another folder.

    Any help would be appreciated.

    Thanks for the help!

    Please Login or Register  to view this content.
    Last edited by ShakJames; 09-15-2016 at 08:33 AM. Reason: More Information

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Add new code to exporting email data from Outlook to Excel

    Hi ShakJames,

    The following code should help you get started. Changes are in red. You can make the test for inclusion as simple or as complicated as you like. Instead of hard coding the test value, you could read test values from Excel cells. The changes are untested for compilation and untested for logic errors.
    Please Login or Register  to view this content.
    I hope this helps.

    Lewis

  3. #3
    Forum Contributor
    Join Date
    08-07-2014
    Location
    London
    MS-Off Ver
    10
    Posts
    148

    Re: Add new code to exporting email data from Outlook to Excel

    Thanks Lewis. That's worked a treat. Just have to work out a way to move the emails now...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Code to email with outlook from excel
    By fbiasi in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-10-2014, 04:58 PM
  2. vba pull data from outlook body of email through email or subject of mail into excel
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2014, 04:37 AM
  3. How to parse data in Outlook email using HTML version of email back to excel
    By bnasty in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 10-31-2012, 02:54 PM
  4. Exporting Excel data into Outlook calendars: Changing an Outlook VBA to Excel VBA
    By spaceporker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-19-2012, 11:39 PM
  5. Exporting data outlook to excel
    By floricita in forum Excel General
    Replies: 0
    Last Post: 02-09-2011, 12:45 PM
  6. Exporting Outlook Form Data to Excel
    By dcbrown in forum Excel General
    Replies: 2
    Last Post: 12-26-2008, 08:23 PM
  7. Replies: 0
    Last Post: 07-17-2006, 05:00 PM

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