S
stephenc
I use an autoexec macro in Word to set up varius things. Part of it opens the
last-opened document (this functionality is enabled/disabled via an INI
setting not shown here):
<snip>
If RecentFiles.Count > 0 Then
RecentFiles(1).Open
End If
<snip>
This works well but I do not want this bit to run if Word is being started
by the user double-clicking on a document file in Explorer (or desktop or
where ever). In this scenario I guess that the document path/filename is in
the Word startup command line.
So my question is this: Is it possible for the autoexec macro to check if
Word is starting with a document in the command line?
last-opened document (this functionality is enabled/disabled via an INI
setting not shown here):
<snip>
If RecentFiles.Count > 0 Then
RecentFiles(1).Open
End If
<snip>
This works well but I do not want this bit to run if Word is being started
by the user double-clicking on a document file in Explorer (or desktop or
where ever). In this scenario I guess that the document path/filename is in
the Word startup command line.
So my question is this: Is it possible for the autoexec macro to check if
Word is starting with a document in the command line?