+ Reply to Thread
Results 1 to 3 of 3

Outlook Macro to gather email data from different subfolders into same worksheet

  1. #1
    Registered User
    Join Date
    06-30-2015
    Location
    Helsinki, Finland
    MS-Off Ver
    2010
    Posts
    2

    Outlook Macro to gather email data from different subfolders into same worksheet

    Hi guys,

    This is my first post so please be gentle with me :P

    So I have this VBA code for gathering email data which I found on the internet and made some minor adjustments to it to fit my needs. I still have one problem which I have been unable to figure out by myself so I was hoping you guys could help

    What the code does:

    User chooses which mailbox to gather data from
    >New excel workbook is opened
    >Email data from main folder is extracted

    >New excel workbook is opened
    >Email data from first subfolder is extracted

    >New excel workbook is opened
    >Email data from second subfolder is extrated etc. you get the drill.

    What I would like it to do is to gather all the email data into the first workbook and everything on one sheet instead of having it open sometimes 20-30 separate workbooks. How would I need to alter the code in that case?

    Please Login or Register  to view this content.
    Thanks for the help in advance!

    Br,
    M.A

  2. #2
    Forum Contributor
    Join Date
    08-27-2006
    Posts
    136

    Re: Outlook Macro to gather email data from different subfolders into same worksheet

    Move the code that creates new workbooks out of the loop.

    Please Login or Register  to view this content.
    To mark "Solved" go to Thread Tools.

  3. #3
    Registered User
    Join Date
    06-30-2015
    Location
    Helsinki, Finland
    MS-Off Ver
    2010
    Posts
    2

    Re: Outlook Macro to gather email data from different subfolders into same worksheet

    Hi Skatonni,

    I had the same idea but I was not able to make the code work after removing the code out of the loop.

    I just tested this, works great! Thank you for your help!

    Br,
    M.A

+ 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. Attaching data from a worksheet using VBA to an email through Outlook
    By AcoloyteAndrew in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2014, 11:07 PM
  2. [SOLVED] Email Macro to attach a non active worksheet to outlook email
    By mickgibbons1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-21-2013, 08:38 PM
  3. Gather data on items in a shared calendar on Outlook 2003
    By gk77 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2013, 09:16 AM
  4. [SOLVED] linking Outlook email folders/subfolders to excell spreadsheets
    By Elvio in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-31-2006, 02:48 PM
  5. linking Outlook email folders/subfolders to excell spreadsheets
    By Elvio in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-31-2006, 02:38 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