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
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.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
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
Last edited by DonkeyOte; 12-06-2009 at 11:57 AM. Reason: attachment reloaded at 15:57 UK time - missing line in Code
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks