0

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?

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
W Almir
  • 656
  • 8
  • 19

1 Answers1

1

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.,

Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78