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

后端 未结 3 1751
别那么骄傲
别那么骄傲 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:39

    1. Make sure the path string is correct.
    2. Try to specify another type to save with - OlSaveAsType.
    3. It may be a security issue when automating Outlook from an external application. See "A program is trying to send an e-mail message on your behalf" warning in Outlook for more information.

提交回复
热议问题