Thanks Graham for looking at this one for me.
The code works okay again on my home setup, but again I am getting that error code on the same line at work.
Outlook (Office 2016) is the default email application at work. In fact, it is the only method that we have.