+ Reply to Thread
Results 1 to 9 of 9

Count Emails in a folder by Date

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Count Emails in a folder by Date

    I found a good macro online for counting emails in a folder by date, but there's some clunkiness to it I'd like to rectify but don't know how. The way I currently have it configured is shown below. The first thing I'd like to change is the folder designation portion. As you can see, I have to dive deep into the folders to pull out the info I want. It would be much better if I could just run this on my selected folder, but don't now how to code for that (not very proficient at Outlook coding).

    The second part I'd like to change is the output; Currently it outputs to a MsgBox, but I'd prefer a hardcopy version, either an Excel Workbook or Notepad. Again, not sure how to go from here to there. Any help would be greatly appreciated.
    Please Login or Register  to view this content.
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Count Emails in a folder by Date

    For the first part, perhaps this
    Please Login or Register  to view this content.
    For the second part, do you have a preference?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Count Emails in a folder by Date

    Wow, that first part was certainly easy enough. Thanks. For the second, I'm much more familiar with Excel, so that would be my preference.

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Count Emails in a folder by Date

    Perhaps replace this section
    Please Login or Register  to view this content.
    with this
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Count Emails in a folder by Date

    And again you rock my world. That does the trick nicely. I'll do a little formatting tweaks, but you've nailed down my two problem areas. Thank you so much!

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Count Emails in a folder by Date

    You're welcome.

  7. #7
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Count Emails in a folder by Date

    Updated, full code is below:
    Please Login or Register  to view this content.
    Last edited by jomili; 01-30-2018 at 10:40 AM. Reason: Updating the code

  8. #8
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Count Emails in a folder by Date

    It might be wise to add an
    Please Login or Register  to view this content.
    around the output part so you don't waste time with a blank worksheet if there weren't any relevant items in Outlook.

  9. #9
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Count Emails in a folder by Date

    Good call. I updated my full code example above.

+ 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. Macro to take count of emails in each folder and subfolder from outlook mailbox
    By saurabhlotankar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-07-2017, 01:33 AM
  2. [SOLVED] Use VBA to get count of emails in Outlook folder
    By catalystsystems in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-05-2017, 06:02 PM
  3. [SOLVED] Count emails in Outlook before set date
    By Stromming in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-19-2016, 06:51 AM
  4. Excel VBA to count emails each day in shared outlook folder
    By k1989l in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2016, 04:29 AM
  5. Copy all emails in outlook folder and paste them in similar system folder and ms access
    By Megatronixs in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-28-2014, 07:31 AM
  6. [SOLVED] Select folder and date range to get emails from Outlook
    By 2sqrd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2013, 09:51 AM
  7. Count of emails by folder and received date
    By TypicalDru in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-16-2012, 04:48 AM

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