Consulting

Results 1 to 2 of 2

Thread: VBA to count received emails

  1. #1
    VBAX Regular
    Joined
    Mar 2014
    Posts
    11
    Location

    VBA to count received emails

    I know this is already in use, but I cant find it anywhere. I need a VBA code to count the number of emails that a SHARED mailbox on Outlook exchange gets in a day.

    So example, if 1 of our email box's gets 100 emails (this date) then I need it to tell me this. I have seen others code, but cant get it to work for mine. Any help, PLEASE????

  2. #2
    i don't have a shared mailbox
    if you set an items collection for that folder with events, you can then count each email that comes that is added in the additem event of the collection, store the value in some persistant location rather than variable, in case of system crash

    or alternatively just do a count of messages with todays date, though any deleted or moved will not be counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •