+ Reply to Thread
Results 1 to 8 of 8

Macro to count emails in outlook

  1. #1
    Forum Contributor
    Join Date
    01-05-2011
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    243

    Macro to count emails in outlook

    Hi,

    I am looking for a macro to count the number of emails in outlook. Excel spreadsheet should display the count of emails available in each folders such as INBOX, VIJAY, SENT ITEMS for a particular date or a date range.

    For eg. If inbox count shows 20 for 09/13/2011 then excel macro should show the count in excel cells.

    Please help!

    Regards,
    Vijay

  2. #2
    Forum Contributor stevebriz's Avatar
    Join Date
    09-07-2006
    Location
    Santiago Chile
    Posts
    389

    Re: Macro to count emails in outlook

    There are many examples if do search engine search for "outlook count emails from excel"
    VBA - The Power Behind the Grid

    Posting a sample of your workbook makes it easier to look at the Issue.

  3. #3
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Macro to count emails in outlook

    try this and if it works mark the Thread as SOLVED

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    01-05-2011
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    243

    Re: Macro to count emails in outlook

    I get compile error
    Object required:
    'Dim Olook As New Outlook.Application

  5. #5
    Forum Contributor
    Join Date
    01-05-2011
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    243

    Re: Macro to count emails in outlook

    Quote Originally Posted by vijanand1279 View Post
    I get compile error
    Object required:
    'Dim Olook As New Outlook.Application
    Could you please help to solve complie error

  6. #6
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Macro to count emails in outlook

    sorry forgot to tell you to go to tools>references and check microsoft outlook object library

  7. #7
    Forum Contributor
    Join Date
    01-05-2011
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    243

    Re: Macro to count emails in outlook

    It works after adding library.

    But how to find the count of the folders for a particular date. The above code find the count for all the items in the folder. Also only 5 folders from my outlook inbox shows count and many other folders does not throw the count details.

    Please help!

  8. #8
    Forum Contributor
    Join Date
    01-05-2011
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    243

    Re: Macro to count emails in outlook

    Could someone help me on this matter.

+ 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