Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以通过电子邮件附件而不是驱动器/共享来判断工作簿是否已打开?
从 Outlook 文件打开到驱动器上的临时目录,您可以检查它是否在该文件夹中,VBA 源如下
IsAttachment = (InStr(1, ThisWorkbook.Path, "Temporary Internet Files", vbTextCompare) > 0)