You cannot do that. More than that, recent (Outlook 2007 and newer) versions first create a temporary message in the primary store first when you double click on an MSG file.,
Outlook-VBA: detecting opening a file event
-
04-06-2022 - |
Domanda
Using either:
Private Sub myInspector_NewInspectr(ByVal Inspector As Outlook.Inspector)
or
Application_ItemLoad(ByVal Item As Object)
I need to find out if Inspector.CurrentItem
or the Item
loaded are opened from inside of outlook (by clicking an email) or by openning a .msg or .oft file saved somewhere.
I also need to find out the name of the file and the path to it.
Is there a way to do that?
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow