Re: Open File




"Jeff Johnson" <i.get@xxxxxxxxxxx> wrote in message
news:utiq3MezGHA.3512@xxxxxxxxxxxxxxxxxxxxxxx
"Ralph" <nt_consulting64@xxxxxxxxx> wrote in message
news:-uOdncfnQPQdx2XZnZ2dnUVZ_rSdnZ2d@xxxxxxxxxxxxxxx

You can simply use Shell(), or you can use ShellExecuteEx(), which
mimics
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


.