CDO.message crashing excel

36 Views Asked by At

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?

enter image description here

1

There are 1 best solutions below

0
ndang22 On

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