+ Reply to Thread
Results 1 to 3 of 3

Outlook mail analytics

  1. #1
    Registered User
    Join Date
    04-03-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    7

    Outlook mail analytics

    Hi,

    I just had a curious thought about creating a report probably in excel or otherwise from my outlook inbox folder or any subfolder as per my choice.

    Total number of mails by sender,break up by monthwise/weekwise/subjectwise(as per generic choice)
    Can this be done with a help a vba macro?

    Thanks,
    Vivek

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Outlook mail analytics

    I suspect you would find it simplest to simply identify the folder of interest and then let the code iterate the mail items retrieving all relevent info (sender, time, subject etc) - you can run a pivot table off this data and analyse however you see fit.

    If this is for you and you alone I would suggest using Early Binding to simplify the process - ie reference the Outlook Object Library via VBE -> Tools -> References ... this will make coding easier as you will have Intellisense as you go along.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Outlook mail analytics

    Attached is a very rough concept...

    Programming with OL is not really my forte so I'm sure it can be improved.

    Remember to reference the appropriate library - the attached was coded in 2007 so it will list a MISSING reference when you open on 2003 machine - deselect the MISSING library and reference the 11.0 library instead...

    If you were looking to roll this type of thing out you'd want to look at controlling the above if using Early Binding else consider Late Binding.

    odd though this will sound (and suspicious) I also came across the below which is in effect working the opposite way around - ie code resides in OL to control XL which may in fact be more along the lines of what you want - the code is VERY similar to mine but I promise I didn't plagiarise (this code will be more robust than mine for sure)

    http://blogs.techrepublic.com.com/msoffice/?p=744
    Attached Files Attached Files
    Last edited by DonkeyOte; 12-06-2009 at 11:57 AM. Reason: attachment reloaded at 15:57 UK time - missing line in Code

+ 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