打开位于Lotus Notes数据库通过VBA的Excel文件附件(Opening an Excel

2019-07-30 13:28发布

我试图自动化位于Lotus Notes中一个职位数据库中的Excel文件的开幕式。 我已经能够开辟使用url Lotus Notes的一个窗口,但我不能打开位于有自动,因为它是一个附件文件。

这是我使用打开链接的VBA代码:

Application.ActiveWorkbook.FollowHyperlink Address:="Notes://URL", NewWindow:=True

什么是做的正确方法?

Answer 1:

你需要使用VBA通过COM访问Lotus Notes的。 然后你就可以得到在NotesEmbeddedObject,使用ExtractFile方法保存它,然后启动该保存的副本。

使用Notes COM API VBA的示例: http://www.vbafin.com/Lotus-Notes-VBA-code.php

有在IBM的网站上的文档,这将帮助你开始:

如何使用LotusScript类使用Visual Basic



文章来源: Opening an Excel file attachment located in a Lotus Notes Database through VBA