Thank you so much for replying! When i try to run the macro, i get the error below.
I would also like to know how to update the macro to automatically run on the folder. We have created a subfolder in the shared inbox called _TO FILE so we will be manually moving all emails that need to be filed into this folder and we want the macro to automatically file the email in the correct folder from there.

Here is the error i get now:
Screenshot 2021-05-11 073040.jpg