Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB 6 to Word Document
Message
 
To
24/07/2000 18:49:50
General information
Forum:
Visual Basic
Category:
ActiveX controls
Miscellaneous
Thread ID:
00396390
Message ID:
00396515
Views:
8
>Greetings all,
> I open an instance of Word 2000, and activate a document. The Word session stays open until closed. I then do the same event, which first does a getobject, to test whether Word is open, and then open the second document.
>
>Code:
> On Error GoTo Start_Word
> Set objWord = GetObject(, "Word.Application")
> boolWordOpen = True
>
>Start_Word:
> On Error Resume Next
> If boolWordOpen = False Then
> boolWordOpen = True
> Set objWord = CreateObject("Word.Application")
> End If
> cThisFile = clsProXtrnal.FormPath & cViewFile
> With objWord
> .Visible = True
> .Documents.Open (cThisFile)
> End With
>Problem is it ALWAYS opens another instance of Word. I need Word to open a second document, not another instance. I did not have this problem with Word 97. Any help is appreciated.
>
> Thanks,
> Brad

Open Word 2000 or (Excel or Access) and open more than one document in this application. You will see one instance for each document on the task bar. It is a O2K feature.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform