Re: Open File
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Fri, 1 Sep 2006 12:19:46 -0500
"Jeff Johnson" <i.get@xxxxxxxxxxx> wrote in message
news:utiq3MezGHA.3512@xxxxxxxxxxxxxxxxxxxxxxx
"Ralph" <nt_consulting64@xxxxxxxxx> wrote in messagemimics
news:-uOdncfnQPQdx2XZnZ2dnUVZ_rSdnZ2d@xxxxxxxxxxxxxxx
You can simply use Shell(), or you can use ShellExecuteEx(), which
launching an app from Explorer and provides opportunities for more
attributes.
'To open Word with file - Shell( "MyWord.doc")
??? Shell() works? I thought I'd seen threads that say Shell() needed an
executable and only ShellExecute[Ex]() could run associated extensions
without the executable being specified. Perhaps I'm only thinking of DOS
commands....
You are essentially correct as my example was incomplete. You can use Shell
by launching cmd (command will not work), ie, my example should have been
....
Shell( "cmd /C MyWord.doc")
But anyway you look at it, the results are ***-ugly using Shell as you get
a blank 'DOSPrompt'. I should never have mentioned it as an option.
-ralph
.
- Follow-Ups:
- Re: Open File
- From: Rick Rothstein \(MVP - VB\)
- Re: Open File
- From: Jeff Johnson
- Re: Open File
- References:
- Open File
- From: george
- Re: Open File
- From: Ralph
- Re: Open File
- From: Jeff Johnson
- Open File
- Prev by Date: Re: Scanning from a networked All-in-one device
- Next by Date: Re: Can I store Date and Time in long integer?
- Previous by thread: Re: Open File
- Next by thread: Re: Open File
- Index(es):