Furthermore, I see that you've removed this code:
It's needed (when you start a new Outlook instance in code) to ensure that the VBA environment has been initialized properly. If you remove that code, you risk the function not being accessible via COM.