0

dear all
i am new to this forum ,i was writing a vb code and i need to display a saved word or exell file on a comand clike, but it replies me file not found. but my code can open a notepad.if any one can tell me the right code i would apreciate.

thanks in advance

3
Contributors
7
Replies
8
Views
10 Years
Discussion Span
Last Post by QVeen72
0

Hi,

Just Find the Path of "WINWORD.exe" (MS Office) normally found in
"Program Files\Microsoft Office\OFFICE" path
Shell sSQL, vbMaximizedFocus
and open like this :

Dim sSQL As String

sSQL = "C:\Program Files\Microsoft Office\OFFICE11\winword.exe C:\mydoc.doc"
Shell sSQL, vbMaximizedFocus


Regards
Veena

0

hi paul

i realy dont understand it ,what do you mean by ram intensive ,bad programming? can you please tell me the side effect of using shell in microsoft word clearly ?

thank you

0

Yes but using Shell on Microsoft word is ram intensive and it is bad programming.

hi paul

i realy dont understand it ,what do you mean by ram intensive ,bad programming? can you please tell me the side effect of using shell in microsoft word clearly ?

thank you

0

Hi Firehiwot,

Actually, i have not come across any major Disadvantages of using "Shell" in VB6.
We have used it in many of our projects, without any complaints from our Clients.
Go ahead and use it.

Regards
Veena

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.