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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top