Compile Error: Object library feature not supported Outlook.Application
You might as well try a weird workaround suggested by Dreadfool at MSDN. It doesn't require you to change a line of code.
Just save the macro into another file and import this new file to your project. This simple step helped in my case, when code stopped working after an update of 365.
I suspect the issue is incorrect references to different outlook versions.
You need to employ late binding if there is a possibility of different versions of outlook or access being used with your user environment. The second code you posted is halfway there but I would suggest having a read up here; http://sourcedaddy.com/ms-access/late-binding.html