Separate VBA Macro’s to Count Emails in a Shared Mailbox in Outlook, from the previous 7 days (ie week) and previous 30 days (ie month)

ndewitt99

New Member
Joined
Dec 13, 2022
Messages
2
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. MacOS
I am looking to insert a macro into outlook to perform the count of folders within the Inbox of a Shared Mailbox. These counts would need to happen on a weekly basis and monthly basis (hence the need for 2 separate macros - unless it can be done in 1 macro). I have tried a count macro before and got success but I need, specifically, the last week and month. Additionally, if anyone could help with how to get the macro to export the count into an existing excel worksheet, so all the data is one big excel file. This would export to an excel file and just input into the column next to the data already there. I hope that makes sense lol. I can clairfy if anyone has any further questions
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I would really appreciate any help anyone can provide.
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,626
Members
449,093
Latest member
catterz66

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top