+ Reply to Thread
Results 1 to 4 of 4

Copying all the emails from Outlook inbox plus subfolders to excel

  1. #1
    Registered User
    Join Date
    11-10-2010
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    3

    Copying all the emails from Outlook inbox plus subfolders to excel

    [originally tacked on here, but moved as hijacking threads is not allowed]

    Great post. I also use a similar code to export all outlook emails to excel. However, I've never managed to get around the problem of how to select a specific folder and the Macro with then circle through all the folders and sub-folders within that, exporting my required info to excel.

    See my code below. In my case I require the sender name, sender email, message subject, parent folder and date sent on. To get round my lack of knowledge, I have listed all the names of the folders i want the macro to look in into the code.

    If any clever folks out there can help me get round this, I'd be very pleased.


    Please Login or Register  to view this content.
    Last edited by romperstomper; 09-06-2011 at 03:33 AM.

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

    Re: Copying all the emails from Outlook inbox plus subfolders to excel

    Basically to read all emails in PostIN and all the subfolders of PostIn this suffices:

    Please Login or Register  to view this content.


    This code doesn't look into subfolders of subfolders in PostIN; but the code is so simple that you can easily adapt it to do so.
    Last edited by snb; 09-06-2011 at 03:56 AM.



  3. #3
    Registered User
    Join Date
    11-10-2010
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Copying all the emails from Outlook inbox plus subfolders to excel

    Not sure if that's what I'm looking for there.

    I pretty much just need the above code to do the same thing but instead of the inserting specific folder names to search for into the code, I'd like to pick the folder.

    I've seen the below piece code used before but have no idea how to integrate it.

    Please Login or Register  to view this content.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,968

    Re: Copying all the emails from Outlook inbox plus subfolders to excel

    I think you merely need to change the start to:
    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

+ 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