Detecting if Word is starting by double-clicking a doc file
- From: "stephenc" <nospam>
- Date: Fri, 26 Aug 2005 03:11:05 -0700
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?
--
Stephenc
.
- Follow-Ups:
- Re: Detecting if Word is starting by double-clicking a doc file
- From: Helmut Weber
- Re: Detecting if Word is starting by double-clicking a doc file
- Prev by Date: Re: WordBasic.ResetChar and ResetPara broken in Word2003?
- Next by Date: Re: FORMS
- Previous by thread: Speed of macros in table revisited
- Next by thread: Re: Detecting if Word is starting by double-clicking a doc file
- Index(es):