The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) MS Word automation solution

I was frustrated by this error every time I run the below code. I did a lot of googling nothing worked. Even Microsoft said it a known issue we don't recommend this.
Then later just to try I just put one try-catch block and it worked perfectly. To date I have not seen that error.

How to copy screenshot to clipboard in New Apple Mac OS

If you have upgraded your Apple Mac OS to 14.x.x, then you may find it strange that the screenshots are not copied into the clipboard. The s...