I vaguely remember reading that there is a way to tell how Word opened a document: 1) from the Open dialog; 2) from an email attachment; 3) from a web page; 4) from a Windows shortcut.

Is such a test possible in VBA?