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)