Counting Mail items in Outlook

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there ... is it possible to count the number of email messages in the
Inbox (or any subfolder under the inbox) in OUtlook using VBA? Any thoughts
or comments would be greatly appreciated.
 
Yes, that it is possible. You can loop through each item and count it.
For 1,000 items that will take a few seconds.

Another way of course would be just reading the MapiFolder.Items.Count
property :-)
 
I will try your suggestion. My VBA has just graduated from elementary school
and counting is next on the curriculum ;-) .... Many thanks Michael
 
This is exactly what I need to do, however I have no VB programming
experience. Does anyone have the code to do this?
 
Back
Top