gpi*_*ier 6 com outlook vba r rdcomclient
我想知道哪些函数可以与 RDCOMClient 对象一起使用。
例如,要创建电子邮件,我们可以使用
OutApp <- COMCreate("Outlook.Application")
# create an email
outMail = OutApp$CreateItem(0)
Run Code Online (Sandbox Code Playgroud)
与outMail[["subject"]],outMail[["HTMLbody"]]或outMail[["Attachments"]]$Add(filepath)
但我怎样才能获得一份全面的清单呢?
RDCOMClient 文档已过时,并且列出的功能(例如getFuncs()和 )getElements()在包中不再可用。尝试names()找出引擎盖下的内容没有给我任何结果,并且
install.packages("remotes")
remotes::install_github("omegahat/SWinTypeLibs")
Run Code Online (Sandbox Code Playgroud)
也给出一个错误。关于如何检查 Outlook 中的对象有什么想法吗?
如果您安装了 Outlook、Excel 或 Word,那么您可以执行以下操作...
<All Libraries>。更改下拉列表,使其显示 Outlook,这会将对象浏览器的范围限制为 Outlook 类型库。享受!