borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (ANN:Fast Report 3.0)Next Topic (LoadResource Function) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Problem with Multiple instances
Poster Message
PGatchalian
Level: Trainee

Registered: 01-10-2004
Posts: 1

icon Problem with Multiple instances

I am currently working on a vb program load excel object and do some work in them. The problem goes like this.
My Vb program creates and instance of excel and for this purpose let us say that the workbook created is book1.Using the GetObject method to access this instance would return book1 and works fine. I  manually open  a saved excel file "test.xls" from one of my drives effectively creating a second instance of excel. I now would like to load the second instance ("test.xls") in my vb program, using GetObject however always returns the first instance, in order to load "test.xls" in vb I would have to close the first instance then use GetObject. Assuming that I don't know the directory where the second instance("test.xls") came from, is there a method in vb to load the second excel instance without closing the first?

04-10-2004 at 03:16 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : Problem with Multiple instances
Previous Topic (ANN:Fast Report 3.0)Next Topic (LoadResource Function) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder