Re: opening word Doc from VB application

Alireza Kheyrollahi <[email protected]> Fri, 4 Oct 2002 21:00:51 +0100
Newsgroups gmane.comp.windows.devel.vbcom
Message-ID <002a01c26be0$be18fc30$9528073e@aliostad>
Dear Mashkoor,

Altough you could be using rich object model of word (office) 9 or 10, you might as well pass the path simply by enclosing it in double quotes and putting it after winword.exe (passing it as a command line argument). But since VB already uses double quotes so:

shell "C:\Program Files\Microsoft Office\Office\winword.exe" & chr(34) & "c:\mydoc.doc" & chr(34)

Cheers
Ali



----- Original Message ----- 
From: "Mashkoor Ali" <[email protected]>
To: <[email protected]>
Sent: Friday, October 04, 2002 6:05 AM
Subject: [VBCOM] opening word Doc from VB application


> Hi
>   I have to open a word document from VB application
>   I know the shell command can do  it but it requires
>   the path to word.exe.
>   can somebody help me
> 
>   i'll be very thankfull
> 
>   Mashkoor Ali
> 
> 
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
> 
> You can read messages from the VBCOM archive, unsubscribe from VBCOM, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
> 

You can read messages from the VBCOM archive, unsubscribe from VBCOM, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.