I've been running this code for a long time, even earlier today. However, whenever I try to run it now (with no changes) it crashes Excel when the code reaches "Set NewMail = New CDO.message". Is there a reason why?

I've been running this code for a long time, even earlier today. However, whenever I try to run it now (with no changes) it crashes Excel when the code reaches "Set NewMail = New CDO.message". Is there a reason why?

Copyright © 2021 Jogjafile Inc.
I figured it out.. I believe the Excel program updated without my knowledge and the code previously used was no longer compatible. I specifically created the object instead.
Updated Code