简体   繁体   中英

Excel VBA: Is Open Workbook an Attachment

是否可以判断是否已通过电子邮件附件而不是驱动器/共享打开了工作簿?

从Outlook文件打开到驱动器上的临时目录,您可以检查其是否在该文件夹中的VBA Source中,如下所示

IsAttachment = (InStr(1, ThisWorkbook.Path, "Temporary Internet Files", vbTextCompare) > 0)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM