How to open multiple instances of MSWord through VB

I

immi

Hi

I want to open MS Word document through VB 6.0 and i am using
shellExecute API
sub command1_click()
Rtn = ShellExecute(frmName.hwnd, "Open", "C:\Program Files\Microsoft
Office\OFFICE11\WINWORD.EXE" , " C:\Program Files\Proj\sheets
\DocName.doc", "", 5)
end sub
when i click the command1 button then word document DocName.doc opens.
that's fine. again when i click the command1 button then same document
which was already opend is shown.But I want to to open multiple
instances of the same document. If i click command1 button 5 times
then 5 instances should open separately and then obviously close
separately. Our requirement is that 4 out of that 5 instances should
be read only ?

It should be noted that same API works fine for opening multiple
instances of MSExcel documents.

Regards
Imi
 
R

Rob

If I try this with Word 2003 I get two instances. Could it be a version or an
options thing? You didn't say which version of Word you are using.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top