I try to create an new email item with MS Outlook (2016, x64 & on Win11):
Dim appOutlook = CreateObject("Outlook.Application")
Dim appOutlookMsg = appOutlook.CreateItem(0)
The 2nd line fails with error message:
System.MissingMemberException: "Public member 'CreateItem' on type 'Application' not found."
The application itself is complied as x64 and also "CreateObject" opens a MS Outlook instance.
On my business machine both code lines are working (Office 365 BUT x86, Win10)!
Any ideas why it does not work?
What I have tried:
I checked if the member could be exposed (failed as well):
appOutlook.GetType.GetMethods()
It seems that only the members from the application object are accessible and not members from the implemented interface "_application".
I also tried to create an new Excel workwook with LateBinding; failed too.