Outlook 2016 - “Run-time error '287': Application-defined or object-defined error” while using CurrentItem.Saveas or CurrentItem.HTMLBody

后端 未结 3 1773
别那么骄傲
别那么骄傲 2021-01-27 23:57

We have an Access Database running for quite a few years under \"Office 2010\" but now we have to change to Office 365 and are getting this annoying error with the code below:

3条回答
  •  情深已故
    2021-01-28 00:41

    As @mariodcm says, the problem is related to Security Policies. He pointed me to the solution. To make long history short:

    Found out that it was blocked by the following policy: HKEY_CURRENT_USER\Software\Policies\Microsoft\office\16.0\outlook\security\promptoomsend

    The key was set to 0 = Automatically Deny. Changing the key to 2 = Automatically Approve solved the problem.

    More information: https://answers.microsoft.com/en-us/msoffice/forum/all/office-365-proplus-word-vba-sending-or-saving-mail/5654cfb4-9671-4900-aec4-93ee06e62c40

提交回复
热议问题