Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2007

Tip: Looking for answers? Try searching our database.

How to open multiple instances of MSWord through VB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
immi - 15 Mar 2007 11:26 GMT
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
Rob - 16 Mar 2007 14:47 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.